<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	String common_contextPath = request.getContextPath();
	String common_basePath = request.getScheme() + "://"
		+ request.getServerName() + ":" + request.getServerPort()
			+ common_contextPath + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>  
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<title>地图</title>  
<script type="text/javascript" language="javaScript">
	var webroot="<%=request.getContextPath() %>";
</script>
<style type="text/css">  
html{height:100%}  
body{height:100%;margin:0px;padding:0px}  
<!--#container{height:480px}   -->
#container{height:480px} 
</style>  
<script type="text/javascript" src="<%=request.getContextPath() %>/jqGrid/js/jquery-1.7.2.min.js"></script>
<!--  <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=9AlAeUKHQtS2WcsKTdhlKF1j"></script>-->
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=D2b4558ebed15e52558c6a766c35ee73"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>
<link rel="stylesheet" href="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.css" />
<link href="http://api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/DistanceTool/1.2/src/DistanceTool_min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/frame/js/map.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/SearchInRectangle/1.2/src/SearchInRectangle_min.js"></script>

</head>  
 
<body>  
<div style='height:10px;display:none;' ></div>
<div id="container"></div> 

<script type="text/javascript"> 
var common_contextPath="<%=common_contextPath%>";
var common_basePath="<%=common_basePath%>";
		
var map = new BMap.Map("container");          // 创建地图实例  
var point = new BMap.Point(116.404, 39.915);  // 创建点坐标  
map.centerAndZoom(point, 15);                 // 初始化地图，设置中心点坐标和地图级别  
map.addControl(new BMap.NavigationControl());      //为地图添加鱼骨  
map.enableScrollWheelZoom();//启用地图滚轮放大缩
//var points = [];
//points[0] =  new BMap.Point(116.404, 39.915);
//points[1] =  new BMap.Point(116.4245, 39.9145);
var markers = [];
//for(var i=0;i<points.length;i++){
	//var marker = new BMap.Marker(points[i]);        // 创建标注    
	//map.addOverlay(marker);  
	//markers[i] = marker;
//}
function PrintPage()
{
	window.print();
}
function clickHandler(e){
   	var pt = e.point;
   	var geoc = new BMap.Geocoder();
	geoc.getLocation(pt, function(rs){
		var addComp = rs.addressComponents;
		var content = '<div style="height:180px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">'
		+'省：'+addComp.province
		+'<br/>市：'+addComp.city
		+'<br/>区：'+addComp.district
		+'<br/>街道：'+addComp.street
		+'<br/>街道号：'+addComp.streetNumber
		+'<br/>经度：'+pt.lng
		+'<br/>纬度：'+pt.lat
		+'<br/><span onclick="showPanorama(\''+pt.lng+'\',\''+pt.lat+'\')">全景查看</span></div>'          
	    //创建检索信息窗口对象
	    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
		title: "位置信息", //标题
		width: 390, //宽度
		height: 200, //高度
		panel : "panel", //检索结果面板
		enableAutoPan : true, //自动平移
		searchTypes   :[
				BMAPLIB_TAB_SEARCH,   //周边检索
				BMAPLIB_TAB_TO_HERE,  //到这里去
				BMAPLIB_TAB_FROM_HERE //从这里出发
			]
		});
		searchInfoWindow.open(pt); 		
	//alert(addComp.province + ", " + addComp.city + ", " + addComp.district + ", " + addComp.street + ", " + addComp.streetNumber);
	});   
}

function addlistener()
{
	var geoc = new BMap.Geocoder();    
	map.addEventListener("click",clickHandler);
}

function removelistener()
{
	map.removeEventListener('click', clickHandler);
}
function setMapStyle(style){
	map.setMapStyle(style); 
}

function showAddress(treeid,childids){
	//管线
	if (treeid.indexOf('gx')==0){		
		showGuanxianpoint(treeid);
	}
	//管段
	else if (treeid.indexOf('gd')==0){
		showGuanduanline(treeid);
	}
	//阀门
	else if(treeid.indexOf('valve')==0){
		showPointNormal(treeid,'valve','ptem_valve','ID',showfamenmenu);
	}	
	//站箱
	else if(treeid.indexOf('zx')==0){
		showPointNormal(treeid,'zx','PTEM_STATION','ID',showzhanxiangmenu);
	}
	//过滤器
	else if(treeid.indexOf('glq')==0){
		showPointNormal(treeid,'glq','PTEM_FILTER','ID',showguolvqimenu);
		//showPointNormal(treeid,'glq','PTEM_FILTER','LOCATIONNO',showguolvqimenu);		
	}
	//安全阀
	else if(treeid.indexOf('aqf')==0){
		showPointNormal(treeid,'aqf','PTEM_SAFETYVALVE','SAFETYVALVENO',showanquanfamenu);	
	}
	//特征点
	else if(treeid.indexOf('tz')==0){
		showTezhengdian(treeid);
	}
	
	//三通
	else if(treeid.indexOf('pointTeeRoot')==0){
		showPointAllNormal(treeid,childids,'pointTee','ptem_point_tee','teeno',showsantongmenu);
	}
	else if(treeid.indexOf('pointTee')==0){
		showPointNormal(treeid,'pointTee','ptem_point_tee','teeno',showsantongmenu);
	}
	//套管
	else if(treeid.indexOf('taoguanRoot')==0){
		showPointAllSpecial(treeid,childids,'taoguan','ptem_point_casing','casingno','BEGINNODEL_map','BEGINNODEB_map',showtaoguanmenu);	
	}
	else if(treeid.indexOf('taoguan')==0){
		showPointSpecial(treeid,'taoguan','ptem_point_casing','casingno','BEGINNODEL_map','BEGINNODEB_map',showtaoguanmenu);
	}
	//弯管
	else if(treeid.indexOf('wanguanRoot')==0){
		showPointAllSpecial(treeid,childids,'wanguan','ptem_point_bend','bendno','BEGINNODEL_map','BEGINNODEB_map',showwanguanmenu);
	}
	else if(treeid.indexOf('wanguan')==0){
		showPointSpecial(treeid,'wanguan','ptem_point_bend','bendno','BEGINNODEL_map','BEGINNODEB_map',showwanguanmenu);
	}
		
	//穿跨越
	else if(treeid.indexOf('chuankuayRoot')==0){
		showPointAllSpecial(treeid,childids,'chuankuay','ptem_point_crossing','CROSSINGNO','BEGINNODEL_map','BEGINNODEB_map',showchuankuayuemenu);
	}
	else if(treeid.indexOf('chuankuay')==0){
		showPointSpecial(treeid,'chuankuay','ptem_point_crossing','CROSSINGNO','BEGINNODEL_map','BEGINNODEB_map',showchuankuayuemenu);
	}
	//内衬
	else if(treeid.indexOf('neichenRoot')==0){
		showPointAllSpecial(treeid,childids,'neichen','ptem_point_liner','LINERNO','BEGINNODEL_map','BEGINNODEB_map',showneichenmenu);
	}
	else if(treeid.indexOf('neichen')==0){
		showPointSpecial(treeid,'neichen','ptem_point_liner','LINERNO','BEGINNODEL_map','BEGINNODEB_map',showneichenmenu);
	}
	//阳极
	else if(treeid.indexOf('pointAnodeRoot')==0){
		showPointAllNormal(treeid,childids,'pointAnode','ptem_point_anode','anodeno',showyangjimenu);
	}
	else if(treeid.indexOf('pointAnode')==0){
		showPointNormal(treeid,'pointAnode','ptem_point_anode','anodeno',showyangjimenu);
	}
	//测试桩
	else if(treeid.indexOf('pointPoleRoot')==0){
		showPointAllNormal(treeid,childids,'pointPole','PTEM_POINT_POLE','POLENO',showceshizhuangmenu);	
	}
	else if(treeid.indexOf('pointPole')==0){
		showPointNormal(treeid,'pointPole','PTEM_POINT_POLE','POLENO',showceshizhuangmenu);
	}
	//排流装置
	else if(treeid.indexOf('pointDrainageRoot')==0){
		showPointAllNormal(treeid,childids,'pointDrainage','ptem_point_drainage','DRAINAGECODE',showpailiuzhuangzhimenu);	
	}
	else if(treeid.indexOf('pointDrainage')==0){
		showPointNormal(treeid,'pointDrainage','ptem_point_drainage','DRAINAGECODE',showpailiuzhuangzhimenu);	
	}
	//异常
	else if(treeid.indexOf('yichangRoot')==0){
		showPointAllNormal(treeid,childids,'yichang','ptem_exception','EXCEPTIONNO',showyichangmenu);	
	}
	else if(treeid.indexOf('yichang')==0){
		showPointNormal(treeid,'yichang','ptem_exception','EXCEPTIONNO',showyichangmenu);	
	}
	//特殊段
	else if(treeid.indexOf('teshuduanRoot')==0){
		showPointAllSpecial(treeid,childids,'teshuduan','ptem_special','SPECIALNO','BEGINNODEL_map','BEGINNODEB_map',showteshuduanmenu);	
	}
	else if(treeid.indexOf('teshuduan')==0){
		showPointSpecial(treeid,'teshuduan','ptem_special','SPECIALNO','BEGINNODEL_map','BEGINNODEB_map',showteshuduanmenu);	
	}
	//违章占压
	else if(treeid.indexOf('wzzyRoot')==0){
		showPointAllNormal(treeid,childids,'wzzy','PTEM_VIOLATION','VIOLATIONNO',showweizhangzhanyamenu);
	}
	else if(treeid.indexOf('wzzy')==0){
	    showPointNormal(treeid,'wzzy','PTEM_VIOLATION','VIOLATIONNO',showweizhangzhanyamenu);
	}
	//生产作业点
	else if(treeid.indexOf('shengchanzydRoot')==0){
	    //showPointAllNormal(treeid,childids,'shengchanzyd','ptem_operations_data','pipeno',showshchzydmenu);
		showPointAllNormal(treeid,childids,'shengchanzyd','ptem_operations_data','id',showshchzydmenu);	
	}
	else if(treeid.indexOf('shengchanzyd')==0){
	    //showPointNormal(treeid,'shengchanzyd','ptem_operations_data','pipeno',showshchzydmenu);
		showPointNormal(treeid,'shengchanzyd','ptem_operations_data','id',showshchzydmenu);
	}
	//带气作业机械预制件
	else if(treeid.indexOf('dqzyjxyzhRoot')==0){
	    showPointAllNormal(treeid,childids,'dqzyjxyzh','ptem_fitting','ID',showdqzyjxyzhmenu);
	}
	else if(treeid.indexOf('dqzyjxyzh')==0){
	    showPointNormal(treeid,'dqzyjxyzh','ptem_fitting','ID',showdqzyjxyzhmenu);
	}
	//事件点
	else if(treeid.indexOf('sjdRoot')==0){
	    showPointAllNormal(treeid,childids,'sjd','ptem_emergency_data','ID',showshijiandianmenu);
	}
	else if(treeid.indexOf('sjd')==0){
	    showPointNormal(treeid,'sjd','ptem_emergency_data','ID',showshijiandianmenu);
	}
	//泄漏点
	else if(treeid.indexOf('xldRoot')==0){
	    showPointAllNormal(treeid,childids,'xld','ptem_leakpoint','ID',showxieloudianmenu);
	}
	else if(treeid.indexOf('xld')==0){
	    showPointNormal(treeid,'xld','ptem_leakpoint','ID',showxieloudianmenu);
	}
	//特征点检查
	else if(treeid.indexOf('testtzhdjchRoot')==0){
	    showPointAllNormal(treeid,childids,'testtzhdjch','ptem_point_test','ID',showtezhengdianjianchamenu);
	}
	else if(treeid.indexOf('testtzhdjch')==0){
	    showPointNormal(treeid,'testtzhdjch','ptem_point_test','ID',showtezhengdianjianchamenu);
	}
	//穿越检查
	else if(treeid.indexOf('chyjchRoot')==0){
	    showPointAllNormal(treeid,childids,'chyjch','ptem_crossing_test','ID',showchuanyuejianchamenu);
	}
	else if(treeid.indexOf('chyjch')==0){
	    showPointNormal(treeid,'chyjch','ptem_crossing_test','ID',showchuanyuejianchamenu);
	}
	//外观检查
	else if(treeid.indexOf('wgjchRoot')==0){
	    showPointAllNormal(treeid,childids,'wgjch','ptem_apperance_check','ID',showwaiguanjianchamenu);
	}
	else if(treeid.indexOf('wgjch')==0){
	    showPointNormal(treeid,'wgjch','ptem_apperance_check','ID',showwaiguanjianchamenu);
	}
	//壁厚检测
	else if(treeid.indexOf('bhjcRoot')==0){
	    showPointAllNormal(treeid,childids,'bhjc','ptem_wallthickness','ID',showbihoujiancemenu);
	}
	else if(treeid.indexOf('bhjc')==0){
	    showPointNormal(treeid,'bhjc','ptem_wallthickness','ID',showbihoujiancemenu);
	}
	//防腐层厚度检测
	else if(treeid.indexOf('ffchdjcRoot')==0){
	    showPointAllNormal(treeid,childids,'ffchdjc','ptem_coatingthickness','ID',showfangfucenghoudujiancemenu);
	}
	else if(treeid.indexOf('ffchdjc')==0){
	    showPointNormal(treeid,'ffchdjc','ptem_coatingthickness','ID',showfangfucenghoudujiancemenu);
	}
	//防腐层破损检测
	else if(treeid.indexOf('ffcpsjcRoot')==0){
	    showPointAllNormal(treeid,childids,'ffcpsjc','ptem_coatingdamaged_test','ID',showfangfucengposunjiancemenu);
	}
	else if(treeid.indexOf('ffcpsjc')==0){
	    showPointNormal(treeid,'ffcpsjc','ptem_coatingdamaged_test','ID',showfangfucengposunjiancemenu);
	}
	//腐蚀状况检测
	else if(treeid.indexOf('fshzhkjcRoot')==0){
	    showPointAllNormal(treeid,childids,'fshzhkjc','ptem_corrosion_test','ID',showfushizhuangkuangjiancemenu);
	}	
	else if(treeid.indexOf('fshzhkjc')==0){
	    showPointNormal(treeid,'fshzhkjc','ptem_corrosion_test','ID',showfushizhuangkuangjiancemenu);
	}	
	//射线检测
	else if(treeid.indexOf('shexianjcRoot')==0){
	    showPointAllNormal(treeid,childids,'shexianjc','ptem_radial','ID',showshexianjiancemenu);
	}	
	else if(treeid.indexOf('shexianjc')==0){
	    showPointNormal(treeid,'shexianjc','ptem_radial','ID',showshexianjiancemenu);
	}	
	//导波检测
	else if(treeid.indexOf('dbjcRoot')==0){
		showPointAllNormal(treeid,childids,'dbjc','PTEM_GUIDEDWAVES_TEST','ID',showdaobojiancemenu);
	}	
	else if(treeid.indexOf('dbjc')==0){
		showPointNormal(treeid,'dbjc','PTEM_GUIDEDWAVES_TEST','ID',showdaobojiancemenu);
	}
	//磁记忆检测
	else if(treeid.indexOf('cjyjcRoot')==0){
		showPointAllNormal(treeid,childids,'cjyjc','ptem_magnetic_test','ID',showcijiyijiancemenu);
	}
	else if(treeid.indexOf('cjyjc')==0){
		showPointNormal(treeid,'cjyjc','ptem_magnetic_test','ID',showcijiyijiancemenu);
	}
	//瞬变电磁检测
	else if(treeid.indexOf('shbdcjcRoot')==0){
		showPointAllNormal(treeid,childids,'shbdcjc','ptem_tdem_test','ID',showshunbiandiancijiancemenu);
	}
	else if(treeid.indexOf('shbdcjc')==0){
		showPointNormal(treeid,'shbdcjc','ptem_tdem_test','ID',showshunbiandiancijiancemenu);
	}
	//应力试验
	else if(treeid.indexOf('ylshyRoot')==0){
		showPointAllNormal(treeid,childids,'ylshy','ptem_remainingstress','ID',showyinglishiyanmenu);
	}
	else if(treeid.indexOf('ylshy')==0){
		showPointNormal(treeid,'ylshy','ptem_remainingstress','ID',showyinglishiyanmenu);
	}
	//化学成分分析
	else if(treeid.indexOf('hxchffxRoot')==0){
		showPointAllNormal(treeid,childids,'hxchffx','ptem_chemical','ID',showhuaxuechengfenfenximenu);
	}
	else if(treeid.indexOf('hxchffx')==0){
		showPointNormal(treeid,'hxchffx','ptem_chemical','ID',showhuaxuechengfenfenximenu);
	}
	//硬度测试
	else if(treeid.indexOf('ydcshRoot')==0){
		showPointAllNormal(treeid,childids,'ydcsh','ptem_hardness','ID',showyingduceshimenu);
	}
	else if(treeid.indexOf('ydcsh')==0){
		showPointNormal(treeid,'ydcsh','ptem_hardness','ID',showyingduceshimenu);
	}
	//金相分析
	else if(treeid.indexOf('jxfxRoot')==0){
		showPointAllNormal(treeid,childids,'jxfx','ptem_metallographic','ID',showjinxiangfenximenu);
	}
	else if(treeid.indexOf('jxfx')==0){
		showPointNormal(treeid,'jxfx','ptem_metallographic','ID',showjinxiangfenximenu);
	}
	//拉伸试验
	else if(treeid.indexOf('lshshyRoot')==0){
		showPointAllNormal(treeid,childids,'lshshy','ptem_stretch','ID',showlashenshiyanmenu);
	}
	else if(treeid.indexOf('lshshy')==0){
		showPointNormal(treeid,'lshshy','ptem_stretch','ID',showlashenshiyanmenu);
	}
	//弯曲试验
	else if(treeid.indexOf('wqshiyRoot')==0){
		showPointAllNormal(treeid,childids,'wqshiy','ptem_bend','ID',showwanqushiyanmenu);
	}
	else if(treeid.indexOf('wqshiy')==0){
		showPointNormal(treeid,'wqshiy','ptem_bend','ID',showwanqushiyanmenu);
	}	
	//冲击试验 
	else if(treeid.indexOf('chjshyRoot')==0){
		showPointAllNormal(treeid,childids,'chjshy','ptem_shock','ID',showchongjishiyanmenu);
	}
	else if(treeid.indexOf('chjshy')==0){
		showPointNormal(treeid,'chjshy','ptem_shock','ID',showchongjishiyanmenu);
	}
	//泄漏检测检测点
	else if(treeid.indexOf('xljcjcdRoot')==0){
		showPointAllNormal(treeid,childids,'xljcjcd','ptem_leak_test','ID',showxieloujiancedianmenu);
	}
	else if(treeid.indexOf('xljcjcd')==0){
		showPointNormal(treeid,'xljcjcd','ptem_leak_test','ID',showxieloujiancedianmenu);
	}
	//泄漏检测泄漏点
	else if(treeid.indexOf('xljcxldRoot')==0){
		showPointAllNormal(treeid,childids,'xljcxld','ptem_leak_test','ID',showxieloujiancexieloudianmenu);
	}
	else if(treeid.indexOf('xljcxld')==0){
		showPointNormal(treeid,'xljcxld','ptem_leak_test','ID',showxieloujiancexieloudianmenu);
	}
	
	//土壤腐蚀性检测
	else if(treeid.indexOf('trfshxjcRoot')==0){
		showPointAllNormal(treeid,childids,'trfshxjc','ptem_soilcorrosion','ID',showturangfushixingjiancemenu);
	}
	else if(treeid.indexOf('trfshxjc')==0){
		showPointNormal(treeid,'trfshxjc','ptem_soilcorrosion','ID',showturangfushixingjiancemenu);
	}
	//杂散电流检测
	else if(treeid.indexOf('zsdljcRoot')==0){
		showPointAllNormal(treeid,childids,'zsdljc','ptem_straycurrenttest','ID',showzasandianliujiancemenu);
	}
	else if(treeid.indexOf('zsdljc')==0){
		showPointNormal(treeid,'zsdljc','ptem_straycurrenttest','ID',showzasandianliujiancemenu);
	}
	//防腐层绝缘电阻
	else if(treeid.indexOf('ffcjydzRoot')==0){
		//showPointAll(treeid,'ffcjydz','ptem_straycurrenttest','pipeno',showtaoguanmenu);
	}
	else if(treeid.indexOf('ffcjydz')==0){
		//showPoint(treeid,'ffcjydz','ptem_straycurrenttest','pipeno',showtaoguanmenu);
	}
	//防腐层检测点5-3
	else if(treeid.indexOf('ffcjcdRoot')==0){
		showPointAllNormal(treeid,childids,'ffcjcd','ptem_risotest_pcm_testdata','ID',showfangfucengjiancedianmenu);
	}
	else if(treeid.indexOf('ffcjcd')==0){
		showPointNormal(treeid,'ffcjcd','ptem_risotest_pcm_testdata','ID',showfangfucengjiancedianmenu);
	}
	//防腐层破损点
	else if(treeid.indexOf('ffcpsdRoot')==0){
		showPointAllNormal(treeid,childids,'ffcpsd','ptem_coating_damagedpoint','ID',showfangfucengposundianmenu);
	}
	else if(treeid.indexOf('ffcpsd')==0){
		showPointNormal(treeid,'ffcpsd','ptem_coating_damagedpoint','ID',showfangfucengposundianmenu);
	}
	//测试桩检测
	else if(treeid.indexOf('cshzhjcRoot')==0){
		showPointAllNormal(treeid,childids,'cshzhjc','ptem_testpileinspect','ID',showceshizhuangjiancemenu);
	}
	else if(treeid.indexOf('cshzhjc')==0){
		showPointNormal(treeid,'cshzhjc','ptem_testpileinspect','ID',showceshizhuangjiancemenu);
	}
	//阴极保护密间隔检测点
	else if(treeid.indexOf('yjbhmjgjcdRoot')==0){
		showPointAllSpecial(treeid,childids,'yjbhmjgjcd','ptem_cips_test_data','ID','LONGITUDE_map','LATITUDE_map',showyinjibaohumijiangemenu);
	}
	else if(treeid.indexOf('yjbhmjgjcd')==0){
		showPointSpecial(treeid,'yjbhmjgjcd','ptem_cips_test_data','ID','LONGITUDE_map','LATITUDE_map',showyinjibaohumijiangemenu);
	}
	//阴极保护效果检测
	else if(treeid.indexOf('yjbhxgjcRoot')==0){
		//showPointAll(treeid,'yjbhxgjc','ptem_cips_test_data','pipeno',showtaoguanmenu);
	}
	else if(treeid.indexOf('yjbhxgjc')==0){
		//showPoint(treeid,'yjbhxgjc','ptem_cips_test_data','pipeno',showtaoguanmenu);
	}
}

//显示阀门信息
function showfamenmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getFamen.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {	   	
	      	var PIPENO=data.PIPENO;
	      	var VALVEPITNO=data.VALVEPITNO;
	      	var VALVENAME=data.VALVENAME;
	      	var DEVICECODE=data.DEVICECODE;
	      	var PRESSURELEVEL=data.PRESSURELEVEL;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var PROJECTNO=data.PROJECTNO;
	      	var TYPE=data.TYPE;
	      	var VALVEFUNCTION=data.VALVEFUNCTION;
	      	var DRIVETYPE=data.DRIVETYPE;
	      	var PRESSUREGRADE=data.PRESSUREGRADE;
	      	var SEALWAY=data.SEALWAY;
	      	var ISREDUCING=data.ISREDUCING;
	      	var INCONNECTTYPE=data.INCONNECTTYPE;
	      	var INDIAMETER=data.INDIAMETER;
	      	var OUTCONNECTTYPE=data.OUTCONNECTTYPE;
	      	var OUTDIAMETER=data.OUTDIAMETER;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var REMARK=data.REMARK;
	      	var PIPELINENO=data.PIPELINENO;
	      	var MANAGEDEPARTMENT=data.MANAGEDEPARTMENT;
	      	var MANAGEUNIT=data.MANAGEUNIT;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;  
	      	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">阀门编号：'+
			p.tzid+'<br/>管网编号：'+PIPENO+	
			'<br/>闸井编号：'+VALVEPITNO+	
			'<br/>阀门名称：'+VALVENAME+		
			'<br/>设备编码：'+DEVICECODE+	
			'<br/>压力级制：'+PRESSURELEVEL+	
			'<br/>管理单位：'+MANAGEUNIT+	
			'<br/>管理部门：'+MANAGEDEPARTMENT+	
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+				
			'<br/>工程项目编号：'+PROJECTNO+
			'<br/>类型：'+TYPE+
			'<br/>阀门功能：'+VALVEFUNCTION+
			'<br/>驱动类型：'+DRIVETYPE+
			'<br/>压力等级（MPa）：'+PRESSURELEVEL+
			'<br/>密封方式：'+SEALWAY+
			'<br/>是否为变径阀门：'+ISREDUCING+
			'<br/>进口连接类型：'+INCONNECTTYPE+
			'<br/>进口通径（mm）：'+INDIAMETER+
			'<br/>出口连接类型：'+OUTCONNECTTYPE+
			'<br/>出口通径（mm）：'+OUTDIAMETER+		
			'<br/>位置描述：'+LOCATIONDESCRIPTION+		
			'<br/>备注：'+REMARK+				
			'<br/>管线编号：'+PIPELINENO+					
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "阀门信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示站箱信息
function showzhanxiangmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getZhanxiang.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	
	      success : function(data, textStatus) {			   		
	      	var STATIONNO=data.STATIONNO;
	      	var PIPENO=data.PIPENO;
	      	var PROJECTNO=data.PROJECTNO;
	      	var DEVICECODE=data.DEVICECODE;
	      	var STATIONNAME=data.STATIONNAME;
	      	var STATIONTYPE=data.STATIONTYPE;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var MANAGEUNIT=data.MANAGEUNIT;
	      	var MANAGEDEPARTMENT=data.MANAGEDEPARTMENT;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var PRESSURELEVEL=data.PRESSURELEVEL;
	      	var PIPELINENO=data.PIPELINENO;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var REMARK=data.REMARK;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;   	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">站箱编号：'+
			p.tzid+'<br/>管网编号：'+PIPENO+	
			'<br/>管线编号：'+PIPELINENO+
			'<br/>工程项目编号：'+PROJECTNO+
			'<br/>设备编码：'+DEVICECODE+
			'<br/>站箱名称：'+STATIONNAME+
			'<br/>类别：'+STATIONTYPE+
			'<br/>位置编号：'+LOCATIONNO+
			'<br/>管理单位：'+MANAGEUNIT+
			'<br/>管理部门：'+MANAGEDEPARTMENT+
			'<br/>位置描述：'+LOCATIONDESCRIPTION+
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+					
			'<br/>压力级制：'+PRESSURELEVEL+				
			'<br/>备注：'+REMARK+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "站箱信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示过滤器信息
function showguolvqimenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getGuolvqi.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	
	      success : function(data, textStatus) {		   		
	      	var PIPENETNO=data.PIPENETNO;
	      	var STATIONNAME=data.STATIONNAME;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var FILTERNO=data.FILTERNO;
	      	var FILTERNAME=data.FILTERNAME;
	      	var USEPERMITNO=data.USEPERMITNO;
	      	var DEVICEREGISTERCODE=data.DEVICEREGISTERCODE;
	      	var DEVICEREGISTERSTATUS=data.DEVICEREGISTERSTATUS;
	      	var TYPE=data.TYPE;
	      	var DEVICESTATUS=data.DEVICESTATUS;
	      	var MANAGEUNIT=data.MANAGEUNIT;
	      	var MANAGEDEPARTMENT=data.MANAGEDEPARTMENT;
	      	var CONTAINERWEIGHT=data.CONTAINERWEIGHT;
	      	var VOLUME=data.VOLUME;
	      	var TUBEWALLTHICKNESS=data.TUBEWALLTHICKNESS;
	      	var HEADWALLTHICKNESS=data.HEADWALLTHICKNESS;
	      	var DIAMETER=data.DIAMETER;
	      	var LENGTH=data.LENGTH;
	      	var MATERIAL=data.MATERIAL;
	      	var DESIGNPRESSURE=data.DESIGNPRESSURE;
	      	var MAXWORKPRESSURE=data.MAXWORKPRESSURE;
	      	var TESTPRESSURE=data.TESTPRESSURE;
	      	var DESIGNTEMPERATURE=data.DESIGNTEMPERATURE;
	      	var MEDIA=data.MEDIA;
	      	var DESIGNUNIT=data.DESIGNUNIT;
	      	var MANUFACTURER=data.MANUFACTURER;	 
	      	var INSTALLUNIT=data.INSTALLUNIT;
	      	var MANUFACTUREDATE=data.MANUFACTUREDATE;
	      	var STARTUSEDATE=data.STARTUSEDATE;
	      	var OWNDISTRICT=data.OWNDISTRICT;
	      	var LOCATIONY=data.LOCATIONY; 
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var REMARK=data.REMARK;
	      	var PIPELINENO=data.PIPELINENO;    	
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;  
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">内部位置编号：'+
			p.tzid+'<br/>站箱管网编号：'+PIPENETNO+	
			'<br/>站箱名称：'+STATIONNAME+	
			'<br/>过滤器出厂编号：'+FILTERNO+		
			'<br/>过滤器名称：'+FILTERNAME+	
			'<br/>使用证编号：'+USEPERMITNO+	
			'<br/>设备注册代码：'+DEVICEREGISTERCODE+	
			'<br/>设备注册情况：'+DEVICEREGISTERSTATUS+	
			'<br/>类别：'+TYPE+
			'<br/>设备状况：'+DEVICESTATUS+
			'<br/>管理单位：'+MANAGEUNIT+	
			'<br/>管理部门：'+MANAGEDEPARTMENT+	
			'<br/>容器净重kg：'+CONTAINERWEIGHT+	
			'<br/>容积m3：'+VOLUME+	
			'<br/>筒体壁厚：'+TUBEWALLTHICKNESS+	
			'<br/>封头壁厚：'+HEADWALLTHICKNESS+	
			'<br/>直径：'+DIAMETER+	
			'<br/>长度：'+LENGTH+	
			'<br/>材质：'+MATERIAL+	
			'<br/>设计压力MPa：'+DESIGNPRESSURE+	
			'<br/>最高工作压力MPa：'+MAXWORKPRESSURE+	
			'<br/>试验压力MPa：'+TESTPRESSURE+	
			'<br/>设计温度℃：'+DESIGNTEMPERATURE+	
			'<br/>介质：'+MEDIA+	
			'<br/>设计单位：'+DESIGNUNIT+	
			'<br/>制造单位：'+MANUFACTURER+	
			'<br/>安装单位：'+INSTALLUNIT+	
			'<br/>制造日期：'+MANUFACTUREDATE+	
			'<br/>投用日期：'+STARTUSEDATE+	
			'<br/>所属区县：'+OWNDISTRICT+	
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+					
			'<br/>备注：'+REMARK+				
			'<br/>管线编号：'+PIPELINENO+					
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "过滤器信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示安全阀信息
function showanquanfamenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getAnquanfa.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {
			var PIPENETNO=data.PIPENETNO;			   	
	     	var STATIONNAME=data.STATIONNAME;
	      	var DEVICECODE=data.DEVICECODE;	
	      	var SAFETYVALVEMODEL=data.SAFETYVALVEMODEL;
	      	var NOMINALDIAMETER=data.NOMINALDIAMETER;
	      	var SAFETYVALVETYPE=data.SAFETYVALVETYPE;
	      	var PRESSURECLASSRANGE=data.PRESSURECLASSRANGE;
	      	var MANUFACTURER=data.MANUFACTURER;
	      	var LICENSENO=data.LICENSENO;
	      	var FACTORYDATE=data.FACTORYDATE;
	      	var MANAGEUNIT=data.MANAGEUNIT;
	      	var MANAGEDEPARMENT=data.MANAGEDEPARMENT;
	      	var REMARK=data.REMARK;
	      	var PIPELINENO=data.PIPELINENO;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname; 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">安全阀编号：'+
			p.tzid+'<br/>站箱管网编号：'+PIPENETNO+		
			'<br/>站箱名称：'+STATIONNAME+	
			'<br/>设备代码：'+DEVICECODE+	
			'<br/>安全阀型号：'+SAFETYVALVEMODEL+	
			'<br/>公称通径/阀座口径（mm）：'+NOMINALDIAMETER+	
			'<br/>安全阀类型：'+SAFETYVALVETYPE+	
			'<br/>压力级别范围：'+PRESSURECLASSRANGE+
			'<br/>制造单位：'+MANUFACTURER+
			'<br/>制造许可证编号：'+LICENSENO+
			'<br/>出厂日期：'+FACTORYDATE+
			'<br/>管理单位：'+MANAGEUNIT+
			'<br/>管理部门：'+MANAGEDEPARMENT+
			'<br/>备注：'+REMARK+		
			'<br/>管线编号：'+PIPELINENO+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "安全阀信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示异常信息
function showyichangmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getYichang.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {
	      	var EXCEPTIONTYPE=data.EXCEPTIONTYPE;	
	      	var DESCRIPTION=data.DESCRIPTION;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var FOUNDTIME=data.FOUNDTIME;
	      	var PIPELINENO=data.PIPELINENO;	
	      	var PIPESECTIONNO=data.PIPESECTIONNO;		  
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/    	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">异常编号：'+
			p.tzid+		
			'<br/>异常类型：'+EXCEPTIONTYPE+	
			'<br/>异常描述：'+DESCRIPTION+	
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+					
			'<br/>异常发现时间：'+FOUNDTIME+				
			'<br/>管线编号：'+PIPELINENO+	
			'<br/>管网编号：'+PIPESECTIONNO+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "异常信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示特殊段信息
function showteshuduanmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getTeshuduan.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {	
			var PIPESECTIONNO=data.PIPESECTIONNO;	
	      	var SPECIALNAME=data.SPECIALNAME;	
	      	var SPECIALTYPE=data.SPECIALTYPE;	
	      	var OTHER=data.OTHER;
	      	var GRADING=data.GRADING;	
	      	var BEGINNODEY=data.BEGINNODEY;
	      	var BEGINNODEX=data.BEGINNODEX;	
	      	var BEGINNODEH=data.BEGINNODEH;
	      	var BEGINNODEL=data.BEGINNODEL;	
	      	var BEGINNODEB=data.BEGINNODEB;
	      	var BEGINNODEELLPSEH=data.BEGINNODEELLPSEH;	
	      	var ENDNODEY=data.ENDNODEY;
	      	var ENDNODEX=data.ENDNODEX;	
	      	var ENDNODEH=data.ENDNODEH;
	      	var ENDNODEL=data.ENDNODEL;
	      	var ENDNODEB=data.ENDNODEB;
	      	var ENDENODEELLIPSEH=data.ENDENODEELLIPSEH;
	      	var REMARK=data.REMARK;
	      	var PROJECTNO=data.PROJECTNO;
	      	var PIPELINENO=data.PIPELINENO;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname; 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">特殊段编号：'+
			p.tzid+'<br/>管网编号：'+PIPESECTIONNO+		
			'<br/>特殊段名称：'+SPECIALNAME+	
			'<br/>类型：'+SPECIALTYPE+	
			'<br/>其他：'+OTHER+	
			'<br/>高后果区分级：'+GRADING+	
			'<br/>起点坐标（起点坐标Y；起点坐标X；起点高程）：'+BEGINNODEY+';'+BEGINNODEX+';'+BEGINNODEH+
			'<br/>终点坐标（终点坐标Y；终点坐标X；终点高程）：'+ENDNODEY+';'+ENDNODEX+';'+ENDNODEH+			
			'<br/>起点经纬度（起点经度L；起点纬度B；起点椭球高）：'+BEGINNODEL+';'+BEGINNODEB+';'+BEGINNODEELLPSEH+			
			'<br/>终点经纬度（终点经度L；终点纬度B；终点椭球高）：'+ENDNODEL+';'+ENDNODEB+';'+ENDENODEELLIPSEH+						
			'<br/>管线编号：'+PIPELINENO+
			'<br/>备注：'+REMARK+
			'<br/>工程项目编号：'+PROJECTNO+					
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "特殊段信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示违章占压信息
function showweizhangzhanyamenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getWeizhangzhanya.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   		     
	      	var VIOLATOR=data.VIOLATOR;	
	      	var OCCURTIME=data.OCCURTIME;
	      	var VIOLATIONFORM=data.VIOLATIONFORM;
	      	var NATURE=data.NATURE;
	      	var ISSEDIMENTATION=data.ISSEDIMENTATION;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var LOCATIONH=data.LOCATIONH;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var LOCATIONELLIPSEH=data.LOCATIONELLIPSEH;
	      	var PIPELINELENGTH=data.PIPELINELENGTH;
	      	var DISTANCE=data.DISTANCE;
	      	var STATE=data.STATE;
	      	var SAFETYLEVEL=data.SAFETYLEVEL;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPESECTIONNO=data.PIPESECTIONNO;
	      	var REMARK=data.REMARK;	      
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/ 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">违章档案编号：'+
			p.tzid+'<br/>违法单位/个人：'+VIOLATOR+		
			'<br/>案发时间：'+OCCURTIME+
			'<br/>违章占压形式：'+VIOLATIONFORM+
			'<br/>违章占压性质：'+NATURE+
			'<br/>是否发现沉降：'+ISSEDIMENTATION+
			'<br/>占压位置描述：'+LOCATIONDESCRIPTION+
			'<br/>四角坐标（起点坐标Y；起点坐标X；起点高程）：'+LOCATIONY+';'+LOCATIONX+';'+LOCATIONH+		
			'<br/>四角经纬度（起点经度L；起点纬度B；起点椭球高）：'+LONGITUDE+';'+LATITUDE+';'+LOCATIONELLIPSEH+						
			'<br/>占压/并行管线长度：'+PIPELINELENGTH+	
			'<br/>距离：'+DISTANCE+
			'<br/>治理状态：'+STATE+
			'<br/>安全状况评级：'+SAFETYLEVEL+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPESECTIONNO+
			'<br/>备注：'+REMARK+				
			'<br/>图片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "违章占压信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示生产作业点信息
function showshchzydmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getShengchanzuoyedian.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {	     
			var PIPENO=data.PIPENO;				   	
	      	var LOCATIONY=data.LOCATIONY;	
	      	var LOCATIONX=data.LOCATIONX;	
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;		      	
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var EVENTNO=data.EVENTNO;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var OCCURETIME=data.OCCURETIME;
	      	var CONTENT=data.CONTENT;	
	      	var ISSOILTEST=data.ISSOILTEST;
	      	var ISCOATINGTEST=data.ISCOATINGTEST;
	      	var ISWELD=data.ISWELD;
	      	var ISREPLACEDPIPENO=data.ISREPLACEDPIPENO;	   
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">'+
			'事件编号：'+EVENTNO+		
			'<br/>位置编号：'+LOCATIONNO+	
			'<br/>管网编号：'+PIPENO+	
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>作业发生时间：'+OCCURETIME+
			'<br/>作业内容：'+CONTENT+
			'<br/>是否进行土壤化验：'+ISSOILTEST+
			'<br/>是否进行防腐层检测：'+ISCOATINGTEST+
			'<br/>是否有焊接：'+ISWELD+
			'<br/>被替换的管网编号：'+ISREPLACEDPIPENO+			
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>现场照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "生产作业信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示带气作业机械预制件信息
function showdqzyjxyzhmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getDaiqizuoyejixieyuzhijian.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {	
	    
	      	var EVENTNO=data.EVENTNO;	
	      	var PIPELINENO=data.PIPELINENO;	
	      	var PIPENO=data.PIPENO;	
	      	var TYPE=data.TYPE;	
	      	var LOCATIONY=data.LOCATIONY;	
	      	var LOCATIONX=data.LOCATIONX;	
	      	var HEIGHT=data.HEIGHT;	
	      	var LONGITUDE=data.LONGITUDE;	
	      	var LATITUDE=data.LATITUDE;	
	      	var ELLIPSEH=data.ELLIPSEH;	
	      	var REMARK=data.REMARK;	 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">事件编号：'+
			EVENTNO+'<br/>管线编号：'+PIPELINENO+		
			'<br/>管网编号：'+PIPENO+	
			'<br/>类型：'+TYPE+	
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+						
			'<br/>备注：'+REMARK+	
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "带气作业机械预制件信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示事件点信息
function showshijiandianmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getShijiandian.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var HEIGHT=data.HEIGHT;
	      	var EVENTNO=data.EVENTNO;
	      	var OCCURETIME=data.OCCURETIME;
	      	var EVENTCONTENT=data.EVENTCONTENT;
	      	var REASONCLASSIFY=data.REASONCLASSIFY;
	      	var REASONANALY=data.REASONANALY;
	      	var EVENTLEVEL=data.EVENTLEVEL;
	      	var RESULT=data.RESULT;
	      	var ISSOILTEST=data.ISSOILTEST;
	      	var ISCOATIONTEST=data.ISCOATIONTEST;
	      	var ISWELD=data.ISWELD;
	      	var PIPENO=data.PIPENO;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;
	      	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">编号：'+
			p.tzid+		
			'<br/>事件编号：'+EVENTNO+			
			'<br/>管网编号：'+PIPENO+
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>事件发生时间：'+OCCURETIME+
			'<br/>事件内容：'+EVENTCONTENT+
			'<br/>事件原因分类：'+REASONCLASSIFY+	
			'<br/>事件原因分析：'+REASONANALY+	
			'<br/>事件等级：'+EVENTLEVEL+
			'<br/>处理结果：'+RESULT+
			'<br/>是否进行土壤化验：'+ISSOILTEST+
			'<br/>是否进行防腐层检测：'+ISCOATIONTEST+
			'<br/>是否有焊接：'+ISWELD+					
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>现场照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "事件信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示泄漏点信息
function showxieloudianmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getXieloudian.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {
			var EVENNO=data.EVENNO;			   	
	      	var TASKNO=data.TASKNO;
	      	var PIPELINENO=data.PIPELINENO;	
	      	var PIPENO=data.PIPENO;
	      	var LOCATIONDESCRIBE=data.LOCATIONDESCRIBE;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var LEAKREASON=data.LEAKREASON;
	      	var DESCRIPTION=data.DESCRIPTION;
	      	var LEAKPPM=data.LEAKPPM;
	      	var LEAKVOL=data.LEAKVOL;
	      	var MANAGEUNIT=data.MANAGEUNIT;
	      	var MANAGEDEPARTMENT=data.MANAGEDEPARTMENT; 
	      	var ISREPAIR=data.ISREPAIR; 
	      	var REPAIRWAY=data.REPAIRWAY; 
	      	var TESTRESULT=data.TESTRESULT; 
	      	var TESTUNIT=data.TESTUNIT; 
	      	var TESTER=data.TESTER; 
	      	var TESTDATE=data.TESTDATE;
	      	var REMARK=data.REMARK;  
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/   	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">事件编号：'+
			EVENNO+	
			'<br/>任务编号：'+TASKNO+	
			'<br/>管线编号：'+PIPELINENO+	
			'<br/>管网编号：'+PIPENO+	
			'<br/>泄漏位置描述：'+LOCATIONDESCRIBE+	
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>泄漏原因：'+LEAKREASON+
			'<br/>情况描述：'+DESCRIPTION+
			'<br/>泄漏浓度ppm：'+LEAKPPM+	
			'<br/>泄漏浓度%vol：'+LEAKVOL+
			'<br/>管理单位：'+MANAGEUNIT+
			'<br/>管理部门：'+MANAGEDEPARTMENT+
			'<br/>是否修补：'+ISREPAIR+
			'<br/>修补方式：'+REPAIRWAY+
			'<br/>检测结果：'+TESTRESULT+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人：'+TESTER+	
			'<br/>检测日期：'+TESTDATE+
			'<br/>备注：'+REMARK+		
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "泄漏点信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示特征点检查信息
function showtezhengdianjianchamenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getTezhengdianjiancha.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {
			var TASKNO=data.TASKNO;		   	
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;	
	     	var POINTNO=data.POINTNO;
	     	var POINTNAME=data.POINTNAME;
	     	var TYPE=data.TYPE;
	     	var LOCATIONY=data.LOCATIONY;
	     	var LOCATIONX=data.LOCATIONX;
	     	var GROUNDMARK=data.GROUNDMARK;
	     	var REMARK=data.REMARK;
	     	var TESTDATE=data.TESTDATE;
	     	var TESTUNIT=data.TESTUNIT;
	     	var TESTER=data.TESTER;
	     	var HEIGHT=data.HEIGHT;
	     	var LONGITUDE=data.LONGITUDE;
	     	var LATITUDE=data.LATITUDE;
	     	var ELLIPSEH=data.ELLIPSEH;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/ 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">管网编号：'+
			PIPENO+'<br/>任务编号：'+TASKNO+		
			'<br/>管线编号：'+PIPELINENO+
			'<br/>特征点编号：'+POINTNO+	
			'<br/>特征点名称：'+POINTNAME+	
			'<br/>类型：'+TYPE+	
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>地面标志情况：'+GROUNDMARK+
			'<br/>检测情况备注：'+REMARK+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+				
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "特征点检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//

//显示穿越检查信息
function showchuanyuejianchamenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getChuanyuejiancha.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {   	
	      	var TASKNO=data.TASKNO;
	      	var PIPELINENO=data.PIPELINENO;
	      	var CROSSINGNO=data.CROSSINGNO;
	      	var CROSSINGINFO=data.CROSSINGINFO;
	      	var CROSSINGTYPE=data.CROSSINGTYPE;
	      	var OBJECTTYPE=data.OBJECTTYPE;
	      	var CROSSINGWAY=data.CROSSINGWAY;
	      	var DESCRIPTION=data.DESCRIPTION;
	      	var CASINGSTANDARD=data.CASINGSTANDARD;
	      	var CROSSINGLENGTH=data.CROSSINGLENGTH;
	      	var CHECKHOLE=data.CHECKHOLE;
	      	var GROUNDANDOTHER=data.GROUNDANDOTHER;
	      	var TESTER=data.TESTER;
	      	var VERIFIER=data.VERIFIER;
	      	var TESTDATE=data.TESTDATE;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var HEIGHT=data.HEIGHT;		  
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/   	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">穿越编号：'+
			CROSSINGNO+'<br/>任务编号：'+TASKNO+		
			'<br/>管线编号：'+PIPELINENO+
			'<br/>穿越描述信息：'+CROSSINGINFO+
			'<br/>穿越类型：'+CROSSINGTYPE+
			'<br/>穿越对象类型：'+OBJECTTYPE+
			'<br/>穿越方式：'+CROSSINGWAY+
			'<br/>地点描述：'+DESCRIPTION+
			'<br/>套管规格：'+CASINGSTANDARD+
			'<br/>穿越长度：'+CROSSINGLENGTH+
			'<br/>套管检查孔：'+CHECKHOLE+
			'<br/>地面及其他情况：'+GROUNDANDOTHER+	
			'<br/>检验：'+TESTER+	
			'<br/>审核：'+VERIFIER+	
			'<br/>日期：'+TESTDATE+			
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "穿越检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示外观检查
function showwaiguanjianchamenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getWaiguanjiancha.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var TYPE=data.TYPE;
	      	var OUTERDIAMETER=data.OUTERDIAMETER;
	      	var THICKNESS=data.THICKNESS;
	      	var MATERIALMARK=data.MATERIALMARK;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;
	      	var LEAKCHECK=data.LEAKCHECK;
	      	var VIBRATECHECK=data.VIBRATECHECK;
	      	var LOCATIONANDDEFORMATION=data.LOCATIONANDDEFORMATION;
	      	var SUPPORTSANDHANGERS=data.SUPPORTSANDHANGERS;
			var VALVE=data.VALVE;
			var FLANGE=data.FLANGE;
			var EXPANSIONJOINT=data.EXPANSIONJOINT;
			var COATING=data.COATING;
			var WELDEDJOINT=data.WELDEDJOINT;
			var CORROSIONCHECK=data.CORROSIONCHECK;
			var WATERSITUATION=data.WATERSITUATION;
			var HUMIDITY=data.HUMIDITY;
			var REMARK=data.REMARK;			
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;	      	
	      	var pipelinegraphpath=data.pipelinegraphpath;
	      	var pipelinegraphname=data.pipelinegraphname;  
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+	
			'<br/>任务编号：'+TASKNO+		
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPENO+		
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+								
			'<br/>检查位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>管道外径mm：'+OUTERDIAMETER+
			'<br/>管道壁厚mm：'+THICKNESS+
			'<br/>材质牌号：'+MATERIALMARK+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>泄漏检查：'+LEAKCHECK+
			'<br/>振动检查：'+VIBRATECHECK+
			'<br/>管道位置与形变：'+LOCATIONANDDEFORMATION+
			'<br/>支吊架：'+SUPPORTSANDHANGERS+
			'<br/>阀门：'+VALVE+
			'<br/>法兰：'+FLANGE+
			'<br/>膨胀节：'+EXPANSIONJOINT+
			'<br/>防腐层：'+COATING+
			'<br/>焊接接头：'+WELDEDJOINT+
			'<br/>管体腐蚀检查：'+CORROSIONCHECK+
			'<br/>积水情况：'+WATERSITUATION+
			'<br/>环境湿度：'+HUMIDITY+
			'<br/>备注：'+REMARK+						
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+
			'<br/>管线图：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			pipelinegraphpath+'" target="_blank">'+pipelinegraphname+'</a>'+				
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "外观检查信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示壁厚检测信息
function showbihoujiancemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getBihoujiance.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var TESTLOCATION=data.TESTLOCATION;
	      	var TESTTYPE=data.TESTTYPE;
	      	var OUTERDIAMETER=data.OUTERDIAMETER;
	      	var THICKNESS=data.THICKNESS;
	      	var SURFACESITUATION=data.SURFACESITUATION;
	    	var LOCATIONY=data.LOCATIONY;
	    	var LOCATIONX=data.LOCATIONX;
	    	var HEIGHT=data.HEIGHT;
	    	var LONGITUDE=data.LONGITUDE;
	    	var LATITUDE=data.LATITUDE;
	    	var ELLIPSEH=data.ELLIPSEH;
	    	var TESTDATE=data.TESTDATE;
	    	var TESTUNIT=data.TESTUNIT;
			var TESTER=data.TESTER;
			var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
			var DEVICENO=data.DEVICENO;
			var DEVICEACCURACY=data.DEVICEACCURACY;
			var COUPLANT=data.COUPLANT;
			var TESTRESULT=data.TESTRESULT;
			var REMARK=data.REMARK; 
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/  
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPENO+					
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+									
			'<br/>检测位置：'+TESTLOCATION+
			'<br/>检查类型：'+TESTTYPE+
			'<br/>管道外径mm：'+OUTERDIAMETER+
			'<br/>管道壁厚mm：'+THICKNESS+
			'<br/>表面状况：'+SURFACESITUATION+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>设备精度：'+DEVICEACCURACY+
			'<br/>耦合剂：'+COUPLANT+
			'<br/>检测结果：'+TESTRESULT+
			'<br/>备注：'+REMARK+				
			'<br/>测点部位图：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "壁厚检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示防腐层厚度检测信息
function showfangfucenghoudujiancemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getFangfucenghoudujiance.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {
	      	var TASKNO=data.TASKNO;			   	
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;
	      	var LOCATIONNO=data.LOCATIONNO;	
	    	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	    	var CHECKTYPE=data.CHECKTYPE;
	    	var OUTERDIAMETER=data.OUTERDIAMETER;
	    	var WALLTHICKNESS=data.WALLTHICKNESS;
	    	var GROUNDSITUATION=data.GROUNDSITUATION;
	    	var COATINGTYPE=data.COATINGTYPE;
	    	var LOCATIONY=data.LOCATIONY;
	    	var LOCATIONX=data.LOCATIONX;
	    	var HEIGHT=data.HEIGHT;
	    	var LONGITUDE=data.LONGITUDE; 
	    	var LATITUDE=data.LATITUDE; 
	    	var ELLIPSEH=data.ELLIPSEH; 
	    	var TESTDATE=data.TESTDATE; 
	    	var TESTUNIT=data.TESTUNIT; 
	    	var TESTER=data.TESTER;
	    	var DEVICENAME=data.DEVICENAME;
	    	var DEVICENO=data.DEVICENO;
	    	var DEVICEACCURENCE=data.DEVICEACCURENCE;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;   
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+	
			'<br/>管线编号：'+PIPELINENO+		
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>管网编号：'+PIPENO+
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>检查类型：'+CHECKTYPE+
			'<br/>管道外径mm：'+OUTERDIAMETER+
			'<br/>管道壁厚mm：'+WALLTHICKNESS+
			'<br/>表面状况：'+GROUNDSITUATION+
			'<br/>防腐层类型：'+COATINGTYPE+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAME+
			'<br/>设备编号：'+DEVICENO+
			'<br/>设备精度：'+DEVICEACCURENCE+			
			'<br/>测点部位图：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "防腐层厚度检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示防腐层破损检测信息
function showfangfucengposunjiancemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getFangfucengposunjiance.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;
	      	var PIPELINENO=data.PIPELINENO;	
	      	var PIPENO=data.PIPENO;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var TYPE=data.TYPE;
	      	var OUTERDIAMETER=data.OUTERDIAMETER; 
	      	var WALLTHICKNESS=data.WALLTHICKNESS;
	      	var GROUNDSITUATION=data.GROUNDSITUATION;
	      	var COATINGTYPE=data.COATINGTYPE;
	      	var COATINGTHICKNESS=data.COATINGTHICKNESS;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTVOLTAGE=data.TESTVOLTAGE;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	      	var DEVICENO=data.DEVICENO;
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD;
	      	var DAMAGEDPOINTNO=data.DAMAGEDPOINTNO;
	      	var DAMAGEEDPOINLOCATION=data.DAMAGEEDPOINLOCATION;
	      	var REMARK=data.REMARK;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;   
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+	
			'<br/>管网编号：'+PIPENO+		
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>管道外径mm：'+OUTERDIAMETER+
			'<br/>管道壁厚mm：'+WALLTHICKNESS+	
			'<br/>表面状况：'+GROUNDSITUATION+
			'<br/>防腐层类型：'+COATINGTYPE+
			'<br/>防腐层厚度mm：'+COATINGTHICKNESS+
			'<br/>检测电压（kv）：'+TESTVOLTAGE+	
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>破损点编号：'+DAMAGEDPOINTNO+
			'<br/>破损点位置：'+DAMAGEEDPOINLOCATION+
			'<br/>备注：'+REMARK+							
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>破损点部位图：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "防腐层破损检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//

//显示腐蚀状况检测信息
function showfushizhuangkuangjiancemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getFushizhuangkuangjiance.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var TYPE=data.TYPE;	
	      	var OUTERDIAMETER=data.OUTERDIAMETER;	
	      	var WALLTHICKNESS=data.WALLTHICKNESS;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	      	var DEVICENO=data.DEVICENO;	
	      	var DEVICEACCURENCE=data.DEVICEACCURENCE;
	      	var COUPLANT=data.COUPLANT;
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD;
	      	var PRODUCTLOCATION=data.PRODUCTLOCATION;
	      	var PRODUCTCOLOR=data.PRODUCTCOLOR;
	      	var PRODUCTSTRUCTURE=data.PRODUCTSTRUCTURE;
	      	var PRODUCTCOMPACTNESS=data.PRODUCTCOMPACTNESS;
	      	var PRODUCTTYPE=data.PRODUCTTYPE;
	      	var PRODUCTSHAPE=data.PRODUCTSHAPE;	      	
	      	var CORROSIONPITNO=data.CORROSIONPITNO; 
	      	var DESIGNTHICKNESS=data.DESIGNTHICKNESS;
	      	var MINTHICKNESS=data.MINTHICKNESS;
	      	var MAXDEPTH=data.MAXDEPTH;
	      	var REMARK=data.REMARK;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/   
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管网编号：'+PIPENO+
			'<br/>管线编号：'+PIPELINENO+						
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+									
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>管道外径mm：'+OUTERDIAMETER+
			'<br/>管道壁厚mm：'+WALLTHICKNESS+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>设备精度：'+DEVICEACCURENCE+
			'<br/>耦合剂：'+COUPLANT+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>腐蚀产物部位：'+PRODUCTLOCATION+
			'<br/>腐蚀产物颜色：'+PRODUCTCOLOR+
			'<br/>腐蚀产物结构：'+PRODUCTSTRUCTURE+
			'<br/>腐蚀产物紧实度：'+PRODUCTCOMPACTNESS+
			'<br/>腐蚀产物类型：'+PRODUCTTYPE+
			'<br/>腐蚀产物形状：'+PRODUCTSHAPE+
			'<br/>腐蚀坑编号：'+CORROSIONPITNO+
			'<br/>设计壁厚mm：'+DESIGNTHICKNESS+
			'<br/>最小剩余壁厚mm：'+MINTHICKNESS+
			'<br/>最大腐蚀坑深mm：'+MAXDEPTH+
			'<br/>备注：'+REMARK+				
			'<br/>腐蚀坑照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "管体腐蚀状况检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}


//显示射线检测信息
function showshexianjiancemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getShexianjiance.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;	
	      	var LOCATIONNO=data.LOCATIONNO;		      	 
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var TESTTYPE=data.TESTTYPE;
	      	var OUTERDIAMETER=data.OUTERDIAMETER;
	      	var WALLTHICKNESS=data.WALLTHICKNESS;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT; 
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;
	      	var OPERATIONCARDNO=data.OPERATIONCARDNO;
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	      	var DEIVICENO=data.DEIVICENO;
	      	var SOURCETYPE=data.SOURCETYPE;
	      	var INTENSIFYWAY=data.INTENSIFYWAY;
	      	var FOCALDISTANCE=data.FOCALDISTANCE;	      	
	      	var ENERGY=data.ENERGY;
	      	var CURRENTSOURCEACTIVITY=data.CURRENTSOURCEACTIVITY;
	      	var IQIMODEL=data.IQIMODEL;
	      	var IQIINDEX=data.IQIINDEX;
	      	var TRANSILLUMINATEMODE=data.TRANSILLUMINATEMODE;
	      	var EXPOSINGTIME=data.EXPOSINGTIME;
	      	var FOCUSSIZE=data.FOCUSSIZE;
	      	var FILMDENSITY=data.FILMDENSITY;
	      	var FILMSIZE=data.FILMSIZE;
	      	var FILMMARK=data.FILMMARK;
	      	var TESTLENGTH=data.TESTLENGTH;
	      	var TRANSILLUMINATIONLENTHT=data.TRANSILLUMINATIONLENTHT;
	      	var TRANSILLUMINATELENGTH=data.TRANSILLUMINATELENGTH;
	      	var TESTRESULT=data.TESTRESULT;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;  
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPENO+		
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+												
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TESTTYPE+
			'<br/>管道外径(mm)：'+OUTERDIAMETER+
			'<br/>管道壁厚(mm)：'+WALLTHICKNESS+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>检测工艺卡编号：'+OPERATIONCARDNO+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEIVICENO+
			'<br/>源种类：'+SOURCETYPE+
			'<br/>增感方式：'+INTENSIFYWAY+
			'<br/>焦距mm：'+FOCALDISTANCE+
			'<br/>能量kV：'+ENERGY+
			'<br/>管电流mA/源活度Bq：'+CURRENTSOURCEACTIVITY+
			'<br/>像质计型号：'+IQIMODEL+
			'<br/>像质计指数：'+IQIINDEX+
			'<br/>透照方式：'+TRANSILLUMINATEMODE+
			'<br/>曝光时间min：'+EXPOSINGTIME+
			'<br/>焦点尺寸：'+FOCUSSIZE+
			'<br/>底片黑度：'+FILMDENSITY+
			'<br/>胶片规格mm：'+FILMSIZE+
			'<br/>胶片牌号：'+FILMMARK+
			'<br/>检测长度mm：'+TESTLENGTH+
			'<br/>一次透照长度mm：'+TRANSILLUMINATIONLENTHT+
			'<br/>执行标准：'+TRANSILLUMINATELENGTH+
			'<br/>检测结果：'+TESTRESULT+				
			'<br/>示意图：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>射线底片图：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+		
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "射线检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示导波检测信息
function showdaobojiancemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getDaobojiance.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {
			var TASKNO=data.TASKNO;				   	
	      	var PIPELINENO=data.PIPELINENO;	
	      	var PIPENO=data.PIPENO;	
	      	var LOCATIONNO=data.LOCATIONNO;	      	
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;	
	      	var TYPE=data.TYPE;	
	      	var OUTERDIAMETER=data.OUTERDIAMETER;	
	      	var WALLTHICKNESS=data.WALLTHICKNESS;	
	      	var LOCATIONY=data.LOCATIONY;	
	      	var LOCATIONX=data.LOCATIONX;	
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;	
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	      	var DEVICENO=data.DEVICENO;
	      	var PROBENO=data.PROBENO;
	      	var TESTMETHOD=data.TESTMETHOD;
	      	var SERIALNO=data.SERIALNO;
	      	var TESTRESULT=data.TESTRESULT;      
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/ 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+			
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPENO+			
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>管道外径(mm)：'+OUTERDIAMETER+
			'<br/>管道壁厚(mm)：'+WALLTHICKNESS+												
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+			
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>探头编号：'+PROBENO+
			'<br/>检测方法：'+TESTMETHOD+
			'<br/>序号：'+SERIALNO+
			'<br/>检测结果：'+TESTRESULT+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "导波检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//

//显示磁记忆检测信息
function showcijiyijiancemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getCijiyijiance.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {	
	      	var TASKNO=data.TASKNO;	
	      	var PIPELINENO=data.PIPELINENO;	
	        var PIPENO=data.PIPENO;	
	        var LOCATIONNO=data.LOCATIONNO;	
	        var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;	
	        var TYPE=data.TYPE;	
	        var OUTERDIAMETER=data.OUTERDIAMETER;	
	        var WALLTHICKNESS=data.WALLTHICKNESS;	
	        var MATERIALMARK=data.MATERIALMARK;	
	        var LOCATIONY=data.LOCATIONY;	
	        var LOCATIONX=data.LOCATIONX;	
	        var HEIGHT=data.HEIGHT;	
	        var LONGITUDE=data.LONGITUDE;	
	        var LATITUDE=data.LATITUDE;	
	        var ELLIPSEH=data.ELLIPSEH;	
	        var TESTDATE=data.TESTDATE;	
	        var TESTUNIT=data.TESTUNIT;	
	        var TESTER=data.TESTER;	
	        var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	        var DEVICENO=data.DEVICENO;
	        var PROBEMODEL=data.PROBEMODEL;
	        var CALIBRATION=data.CALIBRATION;
	        var REMARK=data.REMARK;
	        var TESTPOINTNO=data.TESTPOINTNO;
	        var TESTLOCATION=data.TESTLOCATION;
	        var TESTRESULT=data.TESTRESULT;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;
	      	var diagrampath=data.diagrampath;
	      	var diagramname=data.diagramname; 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPENO+								
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>管道外径(mm)：'+OUTERDIAMETER+
			'<br/>管道壁厚(mm)：'+WALLTHICKNESS+
			'<br/>材质牌号：'+MATERIALMARK+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>探头模式：'+PROBEMODEL+
			'<br/>校准方式：'+CALIBRATION+
			'<br/>备注：'+REMARK+
			'<br/>测点编号：'+TESTPOINTNO+
			'<br/>检测具体位置：'+TESTLOCATION+
			'<br/>检测结果 ：'+TESTRESULT+		
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>检测数据图形：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+	
			'<br/>示意图：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			diagrampath+'" target="_blank">'+diagramname+'</a>'+		
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "磁记忆应力检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示瞬变电磁检测信息
function showshunbiandiancijiancemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getShunbiandiance.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	 
	      success : function(data, textStatus) {	
	      	var TASKNO=data.TASKNO;		   	
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;	
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;	
	      	var LOCATIONY=data.LOCATIONY;	
	      	var LOCATIONX=data.LOCATIONX;	
	      	var HEIGHT=data.HEIGHT;	
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;	
	      	var TESTER=data.TESTER;
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	      	var DEVICENO=data.DEVICENO;
	      	var TESTPOINTDISTANCE=data.TESTPOINTDISTANCE;
	      	var TESTMETHOD=data.TESTMETHOD;  
	      	var EVALUATESTANDARD=data.EVALUATESTANDARD; 
	      	var TESTRESULT=data.TESTRESULT; 
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/ 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">管网编号：'+
			PIPENO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+				
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+				
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>测点间距：'+TESTPOINTDISTANCE+
			'<br/>检测方法：'+TESTMETHOD+
			'<br/>评价标准：'+EVALUATESTANDARD+
			'<br/>检测结果：'+TESTRESULT+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "瞬变电磁检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//

//显示应力试验信息
function showyinglishiyanmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getYinglishiyan.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {	   	
	      	var TASKNO=data.TASKNO;
	      	var PIPELINENO=data.PIPELINENO;	
	      	var PIPENO=data.PIPENO;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var TYPE=data.TYPE;
	      	var OUTERDIAMETER=data.OUTERDIAMETER;
	      	var WALLTHICKNESS=data.WALLTHICKNESS;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;	
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTDATE=data.TESTDATE; 
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	      	var DEVICENO=data.DEVICENO;
	      	var TESTMETHOD=data.TESTMETHOD;
	      	var SAMPLETYPE=data.SAMPLETYPE; 
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD; 
	      	var TESTRESULT=data.TESTRESULT; 
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/ 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPENO+					
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+				
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>管道外径(mm)：'+OUTERDIAMETER+
			'<br/>管道壁厚(mm)：'+WALLTHICKNESS+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>检测方法：'+TESTMETHOD+
			'<br/>试样类型：'+SAMPLETYPE+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>检测结果：'+TESTRESULT+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "残余应力测试信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//

//显示化学成分分析信息
function showhuaxuechengfenfenximenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getHuaxuechengfenfenxi.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {	    	   	
	      	var TASKNO=data.TASKNO;	
	      	var PIPELINENO=data.PIPELINENO;	
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;	
	      	var PIPENO=data.PIPENO;	
	      	var LOCATIONNO=data.LOCATIONNO;	
	      	var TYPE=data.TYPE;	
	      	var LOCATIONY=data.LOCATIONY;	
	      	var LOCATIONX=data.LOCATIONX;		
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;	
	      	var LATITUDE=data.LATITUDE;	
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	      	var DEVICENO=data.DEVICENO;
	      	var TESTMETHOD=data.TESTMETHOD;
	      	var GROUNDSTATUS=data.GROUNDSTATUS;	
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD;	
	      	var TESTRESULT=data.TESTRESULT;			      	  
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/  
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+	
			'<br/>管网编号：'+PIPENO+	
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+										
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>检测方法：'+TESTMETHOD+
			'<br/>表面状况：'+GROUNDSTATUS+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>检测结果：'+TESTRESULT+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "化学成分分析信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示硬度测试信息
function showyingduceshimenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getYingduceshi.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;		
	      	var PIPELINENO=data.PIPELINENO;	
	      	var PIPENO=data.PIPENO;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var TYPE=data.TYPE;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;	      	
	      	var HEIGHT=data.HEIGHT;	
	      	var LONGITUDE=data.LONGITUDE;	
	      	var LATITUDE=data.LATITUDE;	
	      	var ELLIPSEH=data.ELLIPSEH;	
	      	var TESTDATE=data.TESTDATE;	
	      	var TESTUNIT=data.TESTUNIT;	
	      	var TESTER=data.TESTER;	      	
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	      	var DEVICENO=data.DEVICENO;
	      	var TESTMETHOD=data.TESTMETHOD;
	      	var GROUNDSTATUS=data.GROUNDSTATUS;
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD;
	      	var TESTRESULT=data.TESTRESULT;		  
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;   
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPENO+					
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+													
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>检测方法：'+TESTMETHOD+
			'<br/>表面状况：'+GROUNDSTATUS+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>检测结果：'+TESTRESULT+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>示意图：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "硬度测试信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示金相分析信息
function showjinxiangfenximenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getJinxiangfenxi.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) { 	
	      	var TASKNO=data.TASKNO;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var TYPE=data.TYPE;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;	
	      	var TESTER=data.TESTER;
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	      	var DEVICENO=data.DEVICENO;
	      	var TESTMETHOD=data.TESTMETHOD;
	      	var MATERIALMARK=data.MATERIALMARK;
	      	var HEATTREATMENTSTATUS=data.HEATTREATMENTSTATUS;
	      	var POLISHWAY=data.POLISHWAY;
	      	var CROSSIONMETHOD=data.CROSSIONMETHOD;
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD;
	      	var TESTRESULT=data.TESTRESULT;  
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+	
			'<br/>管网编号：'+PIPENO+					
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+																			
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>检测方法：'+TESTMETHOD+	
			'<br/>材质牌号：'+MATERIALMARK+	
			'<br/>热处理状态：'+HEATTREATMENTSTATUS+	
			'<br/>抛光方式：'+POLISHWAY+
			'<br/>腐蚀方法：'+CROSSIONMETHOD+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>检测结果：'+TESTRESULT+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>金相照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "金相分析信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//

//显示拉伸试验信息
function showlashenshiyanmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getLashenshiyan.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	    
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;	
	      	var PIPELINENO=data.PIPELINENO;	
	      	var PIPENO=data.PIPENO;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var TYPE=data.TYPE;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	      	var DEVICENO=data.DEVICENO;
	      	var TESTMETHOD=data.TESTMETHOD;
	      	var SAMPLETYPE=data.SAMPLETYPE;
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD;
	      	var TESTRESULT=data.TESTRESULT;	      	
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/  
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPENO+					
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+																						
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>检测方法：'+TESTMETHOD+
			'<br/>试样类型：'+SAMPLETYPE+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>检测结果：'+TESTRESULT+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "拉伸试验信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示弯曲试验信息
function showwanqushiyanmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getWanqushiyan.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var TYPE=data.TYPE;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;	      	
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	      	var DEVICENO=data.DEVICENO;	
	      	var TESTMETHOD=data.TESTMETHOD;
	      	var SAMPLETYPE=data.SAMPLETYPE;
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD;
	      	var TESTRESULT=data.TESTRESULT;	  	      	
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/ 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPENO+		
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+																						
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>检测方法：'+TESTMETHOD+
			'<br/>试样类型：'+SAMPLETYPE+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>检测结果：'+TESTRESULT+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "弯曲试验信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示冲击试验信息
function showchongjishiyanmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getChongjishiyan.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {	
			var TASKNO=data.TASKNO;		   	
	      	var PIPELINENO=data.PIPELINENO;	
	      	var PIPENO=data.PIPENO;	
	      	var LOCATIONNO=data.LOCATIONNO;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var TYPE=data.TYPE;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;	
	      	var DEVICENO=data.DEVICENO;	
	      	var TESTMETHOD=data.TESTMETHOD;	
	      	var SAMPLETYPE=data.SAMPLETYPE;
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD;
	      	var TESTRESULT=data.TESTRESULT;	  
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/ 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">位置编号：'+
			LOCATIONNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPENO+				
			'<br/>坐标（坐标Y；坐标X；高程h）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高H）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+																									
			'<br/>检测位置：'+LOCATIONDESCRIPTION+
			'<br/>类型：'+TYPE+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>检测方法：'+TESTMETHOD+
			'<br/>试样类型：'+SAMPLETYPE+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>检测结果：'+TESTRESULT+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "冲击试验信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示泄漏检测检测点信息
function showxieloujiancedianmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getXieloujiancejiancedian.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;	
	      	var PIPENAME=data.PIPENAME;
	      	var PIPELINENO=data.PIPELINENO;
	      	var EXCUTESTARDARD=data.EXCUTESTARDARD;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTTIME=data.TESTTIME;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;
	      	var DEVICEMODEL=data.DEVICEMODEL;
	      	var DEVICENO=data.DEVICENO;
	      	var SENSITIVITY=data.SENSITIVITY;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var ALARMLOWER=data.ALARMLOWER;
	      	var LEAKCONCENTRATION=data.LEAKCONCENTRATION;
	      	var TESTRESULT=data.TESTRESULT;
	      	var REMARK=data.REMARK;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/    	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">任务编号：'+
			TASKNO+	
			'<br/>管道名称：'+PIPENAME+	
			'<br/>管线编号：'+PIPELINENO+
			'<br/>执行标准：'+EXCUTESTARDARD+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测时间：'+TESTTIME+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备型号：'+DEVICEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>灵敏度ppm：'+SENSITIVITY+
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>报警下限ppm：'+ALARMLOWER+
			'<br/>泄漏浓度（PPM）：'+LEAKCONCENTRATION+
			'<br/>检测结果：'+TESTRESULT+
			'<br/>备注：'+REMARK+					
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "泄漏检测检测点信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示泄漏检测泄漏点信息
function showxieloujiancexieloudianmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getXieloujiancexieloudian.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;	
	      	var PIPENAME=data.PIPENAME;
	      	var PIPELINENO=data.PIPELINENO;
	      	var EXCUTESTARDARD=data.EXCUTESTARDARD;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTTIME=data.TESTTIME;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;
	      	var DEVICEMODEL=data.DEVICEMODEL;
	      	var DEVICENO=data.DEVICENO;
	      	var SENSITIVITY=data.SENSITIVITY;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var ALARMLOWER=data.ALARMLOWER;
	      	var LEAKCONCENTRATION=data.LEAKCONCENTRATION;
	      	var TESTRESULT=data.TESTRESULT;
	      	var REMARK=data.REMARK;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/    	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">任务编号：'+
			TASKNO+	
			'<br/>管道名称：'+PIPENAME+	
			'<br/>管线编号：'+PIPELINENO+
			'<br/>执行标准：'+EXCUTESTARDARD+
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测时间：'+TESTTIME+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备型号：'+DEVICEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>灵敏度ppm：'+SENSITIVITY+
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>报警下限ppm：'+ALARMLOWER+
			'<br/>泄漏浓度（PPM）：'+LEAKCONCENTRATION+
			'<br/>检测结果：'+TESTRESULT+
			'<br/>备注：'+REMARK+					
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "泄漏检测泄漏点信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示土壤腐蚀性检测信息
function showturangfushixingjiancemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getTurangfushixing.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {
	      	var TASKNO=data.TASKNO;	   	
	      	var PIPENAME=data.PIPENAME;
	      	var PIPELINENO=data.PIPELINENO;	
	      	var PIPENO=data.PIPENO;
	      	var TESTPOINTNO=data.TESTPOINTNO;
	      	var TESTPOINTDESCRIPTION=data.TESTPOINTDESCRIPTION;
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var TESTDATE=data.TESTDATE;
	      	var TESTUNIT=data.TESTUNIT;
	      	var TESTER=data.TESTER;	
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;	
	      	var DEVICENO=data.DEVICENO;	
	      	var PIPEDEPTH=data.PIPEDEPTH;	
	      	var POLEDISTANCE=data.POLEDISTANCE;
	      	var SHOWVALUE=data.SHOWVALUE;
	      	
	      	var SOILRESISTIVITY=data.SOILRESISTIVITY;
	      	var SOILCORROSIONEVALUATE=data.SOILCORROSIONEVALUATE;
	      	var SOILTEXTURE=data.SOILTEXTURE;
	      	var TESTMETHOD=data.TESTMETHOD;	
	      	
	      	var CORROSIONPOTENTIAL=data.CORROSIONPOTENTIAL;
	      	var REDOXPOTENTIAL=data.REDOXPOTENTIAL;
	      	var PHVALUE=data.PHVALUE;
	      	var MOISTURECONTENT=data.MOISTURECONTENT;
	      	var SALTCONTENT=data.SALTCONTENT;
	      	var C1CONTENT=data.C1CONTENT;
	      	var CURRENTDENSITY=data.CURRENTDENSITY;
	      	var SOILCORROSIONLEVEL=data.SOILCORROSIONLEVEL;	
	      	var REMARK=data.REMARK;	  
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/ 
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">土壤检测点编号：'+
			TESTPOINTNO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管道名称：'+PIPENAME+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPENO+
			'<br/>土壤检测点描述：'+TESTPOINTDESCRIPTION+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+						
			'<br/>检测日期：'+TESTDATE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>管道埋深（m）：'+PIPEDEPTH+
			'<br/>电极间距（m）：'+POLEDISTANCE+
			'<br/>仪器显示值：'+SHOWVALUE+
			'<br/>土壤电阻率(Ω•m)：'+SOILRESISTIVITY+
			'<br/>土壤腐蚀性评价：'+SOILCORROSIONEVALUATE+
			'<br/>土壤质地：'+SOILTEXTURE+
			'<br/>检测方法：'+TESTMETHOD+
			'<br/>自然腐蚀电位vs.SHE/mV：'+CORROSIONPOTENTIAL+
			'<br/>氧化还原电位vs.SHE/mV：'+REDOXPOTENTIAL+
			'<br/>pH值：'+PHVALUE+
			'<br/>含水量（%）：'+MOISTURECONTENT+
			'<br/>含盐量（%）：'+SALTCONTENT+
			'<br/>Cl—含量（%）：'+C1CONTENT+
			'<br/>土壤腐蚀电流密度（μA.cm-2）：'+CURRENTDENSITY+
			'<br/>土壤腐蚀性等级：'+SOILCORROSIONLEVEL+
			'<br/>备注：'+REMARK+			
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "土壤腐蚀性检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//

//显示杂散电流检测信息
function showzasandianliujiancemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getZasandianliujiance.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) { 	
	      	var TASKNO=data.TASKNO;
	      	var GROUNDSTATUS=data.GROUNDSTATUS;
	      	var TESTDATE=data.TESTDATE;	
	      	var STRAYPOINTDESCRIPTION=data.STRAYPOINTDESCRIPTION;	
	      	var LOCATIONY=data.LOCATIONY;	
	      	var LOCATIONX=data.LOCATIONX;	
	      	var TESTUNIT=data.TESTUNIT;	
	      	var TESTER=data.TESTER;	
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;	
	      	var DEVICENO=data.DEVICENO;	
	      	var REFERENCETYPE=data.REFERENCETYPE;		
	      	var MONITORDURATION=data.MONITORDURATION;	
	      	var DAQINTERVAL=data.DAQINTERVAL;
	      	var EVALUATIONLEVEL=data.EVALUATIONLEVEL;	
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD;	
	      	var DISTURBTYPE=data.DISTURBTYPE;	
	      	var TESTMETHOD=data.TESTMETHOD;	
	      	var PIPENAME=data.PIPENAME;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;
	      	var COATINGTYPE=data.COATINGTYPE;
	      	var CPWAY=data.CPWAY;
	      	var STRAYPOINTNO=data.STRAYPOINTNO;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var POTENTIALDIAGRAM=data.POTENTIALDIAGRAM;			  
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;
	      	var REMARK=data.REMARK;
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">土壤杂散点：'+
			STRAYPOINTNO+'<br/>任务编号：'+TASKNO+		
			'<br/>地表情况：'+GROUNDSTATUS+
			'<br/>检测日期：'+TESTDATE+
			//'<br/>土壤杂散点编号：'+STRAYPOINTNO+
			'<br/>杂散检测点描述：'+STRAYPOINTDESCRIPTION+
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+
			'<br/>参比类型：'+REFERENCETYPE+
			'<br/>监控时长（小时）：'+MONITORDURATION+
			'<br/>数据采集间隔（秒）：'+DAQINTERVAL+
			'<br/>评价等级：'+EVALUATIONLEVEL+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>干扰类型：'+DISTURBTYPE+
			'<br/>检测方法：'+TESTMETHOD+	
			'<br/>电位图：'+POTENTIALDIAGRAM+
			'<br/>备注：'+REMARK+
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "杂散电流检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示防腐层检测点信息
function showfangfucengjiancedianmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getFangfucengjiancedian.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		      
	   		var TASKNO=data.TASKNO;		   	
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;	
	        var DATALOCATIONY=data.DATALOCATIONY;
	        var DATALOCATIONX=data.DATALOCATIONX;
	        var DATAHEIGHT=data.DATAHEIGHT;
	        var LONGITUDE=data.LONGITUDE;
	        var LATITUDE=data.LATITUDE;
	        var ELLIPSEH=data.ELLIPSEH;
	        var DISTANCE=data.DISTANCE;
	        var DEPTH=data.DEPTH;
	        var PCMCURRENT=data.PCMCURRENT;
	        var LOCATIONCURRENT=data.LOCATIONCURRENT;
	        var RISOVALUE=data.RISOVALUE;
	        var EVALUATIONRESULT=data.EVALUATIONRESULT;
	        var SIGNALACCESSPOINT=data.SIGNALACCESSPOINT;
	        var LOCATIONY=data.LOCATIONY;
	        var LOCATIONX=data.LOCATIONX;
	        var ACCESSHEIGHT=data.ACCESSHEIGHT;
	        var ACCESSLONGITUDE=data.ACCESSLONGITUDE;
	        var ACCESSLATITUDE=data.ACCESSLATITUDE;
	        var ACCESSELLIPSEH=data.ACCESSELLIPSEH;
	        var INITIALCURRENT=data.REMARK;
	        var TESTUNIT=data.TESTUNIT;
	        var TESTDATE=data.TESTDATE;
	        var REMARK=data.REMARK;
	        var DATASERIALNO=data.DATASERIALNO;	        	
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/    	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">'+
			'任务编号：'+TASKNO+		
			'<br/>管线编号：'+PIPELINENO+	
			'<br/>管网编号：'+PIPENO+	
			'<br/>坐标（坐标Y；坐标X；高程）：'+DATALOCATIONY+';'+DATALOCATIONX+';'+DATAHEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>检测序号：'+DATASERIALNO+
			'<br/>距离：'+DISTANCE+
			'<br/>埋深：'+DEPTH+
			'<br/>PCM电流：'+PCMCURRENT+
			'<br/>定位电流：'+LOCATIONCURRENT+
			'<br/>绝缘电阻值：'+RISOVALUE+
			'<br/>评价结果：'+EVALUATIONRESULT+
			'<br/>信号接入点：'+SIGNALACCESSPOINT+
			'<br/>接入点坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+ACCESSHEIGHT+
			'<br/>接入点经纬度（经度L；纬度B；椭球高）：'+ACCESSLONGITUDE+';'+ACCESSLATITUDE+';'+ACCESSELLIPSEH+			
			'<br/>初始电流：'+INITIALCURRENT+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测日期：'+TESTDATE+
			'<br/>备注：'+REMARK+				
			/*'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "防腐层绝缘电阻检测PCM检测信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示防腐层破损点信息
function showfangfucengposundianmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getFangfucengposundian.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;
	      	var TESTDATE=data.TESTDATE;	
	      	var DAMAGEPOINTNO=data.DAMAGEPOINTNO;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var TESTUNIT=data.TESTUNIT;
	      	var JUDGMENTBASIS=data.JUDGMENTBASIS;  
	      	var GROUNDTYPE=data.GROUNDTYPE;
	      	var REMARK=data.REMARK;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPENO=data.PIPENO;
	      	var HEIGHT=data.HEIGHT;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">'+
			'破损点编号：'+DAMAGEPOINTNO+
			'<br/>任务编号：'+TASKNO+	
			'<br/>管线编号：'+PIPELINENO+			
			'<br/>管网编号：'+PIPENO+
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>破损点位置描述：'+LOCATIONDESCRIPTION+
			'<br/>判断依据：'+JUDGMENTBASIS+
			'<br/>地面覆土类型：'+GROUNDTYPE+
			'<br/>检测单位：'+TESTUNIT+	
			'<br/>检测日期：'+TESTDATE+							
			'<br/>备注：'+REMARK+					
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "防腐层破损点信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示测试桩检测信息
function showceshizhuangjiancemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getCeshizhuangjiance.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var TASKNO=data.TASKNO;	
	     	var TESTDATE=data.TESTDATE;
	     	var TESTPILENO=data.TESTPILENO;
	     	var DEVICENO=data.DEVICENO;
	     	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	     	var LOCATIONY=data.LOCATIONY;
	     	var LOCATIONX=data.LOCATIONX;
	     	var TESTUNIT=data.TESTUNIT;
	     	var TESTER=data.TESTER;
	     	var CURRENTSITUATION=data.CURRENTSITUATION;
	     	var PROTECTPOTENTIAL=data.PROTECTPOTENTIAL;
	     	var ANODEPROTENTIAL=data.ANODEPROTENTIAL;
	     	var ANODECURRENT=data.ANODECURRENT;
	     	var ANODERESISTOR=data.ANODERESISTOR;
	     	var EVALUATELEVEL=data.EVALUATELEVEL;
	     	//var PHOTONAMES=data.PHOTONAMES;
	     	var REMARK=data.REMARK;
	     	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;
	     	var EXCUTESTANDARD=data.EXCUTESTANDARD;
	     	var TESTMETHOD=data.TESTMETHOD;
	     	var PIPENAME=data.PIPENAME;
	     	var PIPELINENO=data.PIPELINENO;
	     	var PIPENO=data.PIPENO;
	     	var HEIGHT=data.HEIGHT;
	     	var LONGITUDE=data.LONGITUDE;
	     	var LATITUDE=data.LATITUDE;
	     	var ELLIPSEH=data.ELLIPSEH;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/ 	   	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">测试桩编号：'+
			TESTPILENO+
			'<br/>任务编号：'+TASKNO+
			'<br/>管线编号：'+PIPELINENO+						
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+			
			'<br/>检测日期：'+TESTDATE+		
			'<br/>设备编号：'+DEVICENO+
			'<br/>地点描述：'+LOCATIONDESCRIPTION+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>现状：'+CURRENTSITUATION+
			'<br/>管地电位（保护电位）（-mV）：'+PROTECTPOTENTIAL+
			'<br/>阳极开路电位（-mV）：'+ANODEPROTENTIAL+			
			'<br/>阳极输出电流（mA）：'+ANODECURRENT+
			'<br/>阳极接地电阻（Ω）：'+ANODERESISTOR+
			'<br/>评定等级：'+EVALUATELEVEL+
			'<br/>备注：'+REMARK+
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>检测方法：'+TESTMETHOD+
			'<br/>管道名称：'+PIPENAME+
			'<br/>管网编号：'+PIPENO+				
			'<br/>照片名：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "测试桩信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}

//显示阴极保护密间隔检测点信息
function showyinjibaohumijiangemenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getYinjibaohumijiange.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {	    
	      	var TASKNO=data.TASKNO;	
	      	var TESTTIME=data.TESTTIME;	
	      	var CONNECTMODE=data.CONNECTMODE;		   	
	      	var TESTUNIT=data.TESTUNIT;	
	      	var TESTER=data.TESTER;	
	      	var LOCATIONY=data.LOCATIONY;	
	      	var LOCATIONX=data.LOCATIONX;
	      	var STARTPOINTPOTENTIAL=data.STARTPOINTPOTENTIAL;
	      	var TESTMETHOD=data.TESTMETHOD;
	      	var REFERENCETYPE=data.REFERENCETYPE;
	      	//var DATADIAGRAM=data.DATADIAGRAM;  
	      	var DEVICENAMEMODEL=data.DEVICENAMEMODEL;	
	      	var DEVICENO=data.DEVICENO;	
	      	var EXCUTESTANDARD=data.EXCUTESTANDARD;	
	      	var REMARK=data.REMARK;
	      	var ACCESSLONGITUDE=data.ACCESSLONGITUDE;
	      	var ACCESSLATITUDE=data.ACCESSLATITUDE;
	      	var RECORDNUMBER=data.RECORDNUMBER;
	      	var DISTANCE=data.DISTANCE;
	      	var PULSE=data.PULSE;
	      	var CIPS_ON=data.CIPS_ON;
	      	var CIPS_OFF=data.CIPS_OFF;
	      	var DCVG_ON=data.DCVG_ON;
	      	var DCVG_OFF=data.DCVG_OFF;
	      	var LATUTIDE=data.LATUTIDE;
	      	var NS=data.NS;	
	      	var LONGITUDE=data.LONGITUDE;
	      	var EW=data.EW;
	      	var ALTITUDE=data.ALTITUDE;
	      	var DATE_TIME=data.DATE_TIME;
	      	var FEATURE=data.FEATURE;
	      	var TESTRESULT=data.TESTRESULT;
	      	var SECTIONNO=data.SECTIONNO;
	      	var PIPENO=data.PIPENO;
	      	var PIPELINENO=data.PIPELINENO;
	      	var POTENTIALRANGE=data.POTENTIALRANGE;
	      	var PROTECTRATE=data.PROTECTRATE;
	      	var DATAY=data.DATAY;
	      	var DATAX=data.DATAX;
	      	var HEIGHT=data.HEIGHT;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/  
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">管网编号：'+
			p.tzid+
			'<br/>任务编号：'+TASKNO+
			'<br/>检测时间：'+TESTTIME+
			'<br/>接线方式：'+CONNECTMODE+
			'<br/>检测单位：'+TESTUNIT+
			'<br/>检测人员：'+TESTER+
			'<br/>检测方法：'+TESTMETHOD+	
			'<br/>初始点管地电位(-mV)：'+STARTPOINTPOTENTIAL+	
			'<br/>参比类型：'+REFERENCETYPE+				
			'<br/>设备名称及型号：'+DEVICENAMEMODEL+
			'<br/>设备编号：'+DEVICENO+	
			'<br/>执行标准：'+EXCUTESTANDARD+
			'<br/>备注：'+REMARK+		
			'<br/>接入点坐标（坐标Y；坐标X）：'+LOCATIONY+';'+LOCATIONX+
			'<br/>接入点经纬度（经度L；纬度B）：'+ACCESSLONGITUDE+';'+ACCESSLATITUDE+					
			'<br/>数据图：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			'<br/>RecordNumber：'+RECORDNUMBER+
			'<br/>Distance：'+DISTANCE+
			'<br/>Pulse：'+PULSE+
			'<br/>CIPS_ON：'+CIPS_ON+
			'<br/>CIPS_OFF：'+CIPS_OFF+
			'<br/>DCVG_ON：'+DCVG_ON+
			'<br/>DCVG_OFF：'+CIPS_OFF+
			'<br/>数据坐标（坐标Y；坐标X；高程）：'+DATAY+';'+DATAX+';'+HEIGHT+
			'<br/>数据经纬度（经度L；纬度B）：'+LONGITUDE+';'+LATUTIDE+';'+						
			'<br/>NS：'+NS+
			'<br/>EW：'+EW+
			'<br/>Date_Time：'+DATE_TIME+
			'<br/>Feature：'+FEATURE+
			'<br/>检测结果：'+TESTRESULT+
			'<br/>分段编号：'+SECTIONNO+
			//'<br/>管网编号：'+PIPENO+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管道电位范围（-mV）：'+POTENTIALRANGE+
			'<br/>保护率：'+PROTECTRATE+
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "阴极保护密间隔检测点信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}


//显示内衬信息
function showneichenmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getNeichen.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		   	
	      	var PIPELINENO=data.PIPELINENO;
	      	var LINERDESCRIPTION=data.LINERDESCRIPTION;
	     	var BEGINNODEY=data.BEGINNODEY;
	     	var BEGINNODEX=data.BEGINNODEX;
	     	var BEGINNODEH=data.BEGINNODEH;
	     	var BEGINNODEL=data.BEGINNODEL;
	     	var BEGINNODEB=data.BEGINNODEB;
	     	var BEGINNODEELLIPSEH=data.BEGINNODEELLIPSEH;
	     	var ENDNODEY=data.ENDNODEY;
	     	var ENDNODEX=data.ENDNODEX;
	     	var ENDNODEH=data.ENDNODEH;
	      	var ENDNODEL=data.ENDNODEL;	 
	      	var ENDNODEB=data.ENDNODEB;	
	      	var ENDNODEELLIPSEH=data.ENDNODEELLIPSEH;	
	      	var IMPROVEDATE=data.IMPROVEDATE;	
	      	var REMARK=data.REMARK;	
	      	var PROJECTNO=data.PROJECTNO;	  
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/    	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">内衬编号：'+
			p.tzid+'<br/>管线编号：'+PIPELINENO+		
			'<br/>内衬描述信息：'+LINERDESCRIPTION+	
			'<br/>起点坐标（起点坐标Y；起点坐标X；起点高程）：'+BEGINNODEY+';'+BEGINNODEX+';'+BEGINNODEH+
			'<br/>终点坐标（终点坐标Y；终点坐标X；终点高程）：'+ENDNODEY+';'+ENDNODEX+';'+ENDNODEH+			
			'<br/>起点经纬度（起点经度L；起点纬度B；起点椭球高）：'+BEGINNODEL+';'+BEGINNODEB+';'+BEGINNODEELLIPSEH+			
			'<br/>终点经纬度（终点经度L；终点纬度B；终点椭球高）：'+ENDNODEL+';'+ENDNODEB+';'+ENDNODEELLIPSEH+						
			'<br/>技改日期：'+IMPROVEDATE+
			'<br/>备注：'+REMARK+
			'<br/>工程项目编号：'+PROJECTNO+					
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "内衬信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示弯管信息
function showwanguanmenu(e){
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getWanguan.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		
	      	var PIPESECTIONNO=data.PIPESECTIONNO;
	     	var BEGINNODEY=data.BEGINNODEY;
	     	var BEGINNODEX=data.BEGINNODEX;
	     	var BEGINNODEH=data.BEGINNODEH;
	     	var BEGINNODEL=data.BEGINNODEL;
	     	var BEGINNODEB=data.BEGINNODEB;
	     	var BEGINNODEELLIPSEH=data.BEGINNODEELLIPSEH;
	     	var ENDNODEY=data.ENDNODEY;
	     	var ENDNODEX=data.ENDNODEX;
	     	var ENDNODEH=data.ENDNODEH;
	      	var ENDNODEL=data.ENDNODEL;	 
	      	var ENDNODEB=data.ENDNODEB;	
	      	var ENDNODEELLIPSEH=data.ENDNODEELLIPSEH;	
	      	var BENDRADIUS=data.BENDRADIUS;	
	      	var BENDANGLE=data.BENDANGLE;	
	      	var BENDMATERIAL=data.BENDMATERIAL;	
	      	var PIPELINENO=data.PIPELINENO;	  
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/    	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">弯管编号：'+
			p.tzid+'<br/>管段编号：'+PIPESECTIONNO+		
			'<br/>起点坐标（起点坐标Y；起点坐标X；起点高程）：'+BEGINNODEY+';'+BEGINNODEX+';'+BEGINNODEH+
			'<br/>终点坐标（终点坐标Y；终点坐标X；终点高程）：'+ENDNODEY+';'+ENDNODEX+';'+ENDNODEH+			
			'<br/>起点经纬度（起点经度L；起点纬度B；起点椭球高）：'+BEGINNODEL+';'+BEGINNODEB+';'+BEGINNODEELLIPSEH+			
			'<br/>终点经纬度（终点经度L；终点纬度B；终点椭球高）：'+ENDNODEL+';'+ENDNODEB+';'+ENDNODEELLIPSEH+						
			'<br/>弯管半径(mm)：'+BENDRADIUS+
			'<br/>弯管角度(°)：'+BENDANGLE+
			'<br/>弯管材质：'+BENDMATERIAL+
			'<br/>管线编号：'+PIPELINENO+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			//'<br/>备注：'+REMARK+
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "弯管信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
function showtaoguanmenu(e){
	//alert('taoguanmenu');
	var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getTaoguan.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  	
	      success : function(data, textStatus) {		
	      	var PIPENO=data.PIPENO;
	      	var CASINGINFO=data.CASINGINFO;
	      	var CASINGTYPE=data.CASINGTYPE;
	      	var CASINGLENGTH=data.CASINGLENGTH;
	      	var LOCATION=data.LOCATION;
	      	var BEGINNODEY=data.BEGINNODEY;
	      	var BEGINNODEX=data.BEGINNODEX;
	      	var BEGINNODEH=data.BEGINNODEH;
	      	var BEGINLONGITUDE=data.BEGINLONGITUDE;
	      	var BEGINNODELATITUDE=data.BEGINNODELATITUDE;
	      	var BEGINNODEELLIPSEH=data.BEGINNODEELLIPSEH;
	      	var ENDNODEY=data.ENDNODEY;
	      	var ENDNODEX=data.ENDNODEX;
	      	var ENDNODEH=data.ENDNODEH;
	      	var ENDLONGITUDE=data.ENDLONGITUDE;
	      	var ENDLATITUDE=data.ENDLATITUDE;
	      	var ENDELLIPSEH=data.ENDELLIPSEH;
	      	var ISFILLED=data.ISFILLED;
	      	var FILLMEDIA=data.FILLMEDIA;
	      	var ISSULATION=data.ISSULATION;
	      	var ISCPEQUIPMENT=data.ISCPEQUIPMENT;
	      	var DIAMETER=data.DIAMETER;
	      	var THICKNESS=data.THICKNESS;
	      	var SEALTYPE=data.SEALTYPE;
	      	var ISSHORTCIRCUIT=data.ISSHORTCIRCUIT;
	      	var ISEMPTY=data.ISEMPTY;
	      	var PIPELINENO=data.PIPELINENO;	      	
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/     	
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">管网编号：'+
			p.tzid+'<br/>管网编号：'+PIPENO+
			'<br/>套管描述信息：'+CASINGINFO+
			'<br/>套管类型：'+CASINGTYPE+
			'<br/>套管长度（m）：'+CASINGLENGTH+
			'<br/>位置：'+LOCATION+			
			'<br/>起点坐标（起点坐标Y；起点坐标X；起点高程）：'+BEGINNODEY+';'+BEGINNODEX+';'+BEGINNODEH+
			'<br/>终点坐标（终点坐标Y；终点坐标X；终点高程）：'+ENDNODEY+';'+ENDNODEX+';'+ENDNODEH+			
			'<br/>起点经纬度（起点经度L；起点纬度B；起点椭球高）：'+BEGINLONGITUDE+';'+BEGINNODELATITUDE+';'+BEGINNODEELLIPSEH+			
			'<br/>终点经纬度（终点经度L；终点纬度B；终点椭球高）：'+ENDLONGITUDE+';'+ENDLATITUDE+';'+ENDELLIPSEH+						
			'<br/>是否已填充：'+ISFILLED+
			'<br/>填充介质：'+FILLMEDIA+
			'<br/>是否绝缘：'+ISSULATION+
			'<br/>套管两侧是否有阴极保护设备：'+ISCPEQUIPMENT+
			'<br/>套管直径（mm）：'+DIAMETER+
			'<br/>套管壁厚（mm）：'+THICKNESS+
			'<br/>密封类型：'+SEALTYPE+
			'<br/>是否短接：'+ISSHORTCIRCUIT+
			'<br/>是否已排空：'+ISEMPTY+
			'<br/>管线编号：'+PIPELINENO+				
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			//'<br/>备注：'+REMARK+
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "套管信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
}
//显示点
function showPoint(tzid,type,tablename,fieldname,longitudeField,latitudeField,clickevent)
{
	if(arguments.length==7)
	{		
		showPointSpecial(tzid,type,tablename,fieldname,longitudeField,latitudeField,clickevent);
	}
	else
	{
		showPointNormal(tzid,type,tablename,fieldname,clickevent);
	}
}
function showPointAll(id,childids,type,tablename,fieldname,longitudeField,latitudeField,clickevent)
{
	if(arguments.length==8)
	{		
		showPointAllSpecial(id,childids,type,tablename,fieldname,longitudeField,latitudeField,clickevent);
	}
	else
	{	
		showPointAllNormal(id,childids,type,tablename,fieldname,clickevent);
	}
}

function showPointSpecial(tzid,type,tablename,fieldname,longitudeField,latitudeField,clickevent){	
	if(automap.get(tzid)!=null)
	{
		//alert('automap.get(tzid)!=null');
		return;
	}
	$.ajax({
		type: "POST",
		async: false,//取消异步提交
		url: '<%=request.getContextPath() %>/pipePointAction!getPoint.action?id='+tzid+'&type='+type+'&tablename='+tablename+'&fieldname='+fieldname+'&longitudeField='+longitudeField+'&latitudeField='+latitudeField,
		dataType: "json",
		success : function(data, textStatus) {  
			//if (data!=null||data!="")
			if (data!=null&&data!=""&&data.longitude!=""&&data.latitude!="")
			{
				var point =  new BMap.Point(data.longitude, data.latitude);
				map.panTo(point);
				if (data.picfilename!=''){
					//var myIcon = new BMap.Icon(common_basePath+"map/pic/"+data.picfilename, new BMap.Size(64,64));
					var myIcon = new BMap.Icon(common_basePath+"map/pic/"+data.picfilename, new BMap.Size(32,32));
					var marker = new BMap.Marker(point,{icon:myIcon});  // 创建标注
					map.addOverlay(marker);              // 将标注添加到地图中
					//marker.tzid = tzid.replace(title,'');
					marker.tzid = tzid.replace(type,'');
					marker.longitude = data.longitude;
					marker.latitude = data.latitude;
					marker.addEventListener("click",clickevent);  
					automap.put(tzid,marker);
				}
				else{
					var marker = new BMap.Marker(point); 
					map.addOverlay(marker);
					//marker.tzid = tzid.replace(title,'');
					marker.tzid = tzid.replace(type,'');
					marker.longitude = data.longitude;
					marker.latitude = data.latitude;
					marker.addEventListener("click",clickevent); 
					automap.put(tzid,marker); 
				}
			}
			else{
				//alert('没有坐标！');
			}
		}
	});
}
function showPointNormal(tzid,type,tablename,fieldname,clickevent){
	if(automap.get(tzid)!=null)
	{
		//alert('automap.get(tzid)!=null');
		return;
	}
	$.ajax({
		type: "POST",
		async: false,//取消异步提交
		url: '<%=request.getContextPath() %>/pipePointAction!getPoint.action?id='+tzid+'&type='+type+'&tablename='+tablename+'&fieldname='+fieldname,
		dataType: "json",
		success : function(data, textStatus) {  
			 if (data!=null&&data!=""&&data.longitude!=""&&data.latitude!="")
			 {
				var point =  new BMap.Point(data.longitude, data.latitude);
				map.panTo(point);
				if (data.picfilename!=''){
					//var myIcon = new BMap.Icon(common_basePath+"map/pic/"+data.picfilename, new BMap.Size(64,64));
					var myIcon = new BMap.Icon(common_basePath+"map/pic/"+data.picfilename, new BMap.Size(32,32));				
					var marker = new BMap.Marker(point,{icon:myIcon});  // 创建标注
					map.addOverlay(marker);              // 将标注添加到地图中
					marker.tzid = tzid.replace(type,'');
					marker.longitude = data.longitude;
					marker.latitude = data.latitude;
					marker.addEventListener("click",clickevent);  					
					automap.put(tzid,marker); 
					if(tablename=="ptem_valve")
					{
						famenmap.put(tzid,marker);
					}
				}
				else{
					var marker = new BMap.Marker(point); 
					map.addOverlay(marker);
					marker.tzid = tzid.replace(type,'');
					marker.longitude = data.longitude;
					marker.latitude = data.latitude;
					marker.addEventListener("click",clickevent);   
					automap.put(tzid,marker); 
				}
			}
			else{
				//alert('没有坐标！');
			}
		}
	});
}
//显示一个管线下的某一类型下的所有点
function showPointAllSpecial(id,childids,type,tablename,fieldname,longitudeField,latitudeField,clickevent){
$.ajax({
		type: "POST",
		async: false,//取消异步提交
		url: '<%=request.getContextPath() %>/pipePointAction!getPointAll.action?id='+id+'&type='+type+'&tablename='+tablename+'&fieldname='+fieldname+'&longitudeField='+longitudeField+'&latitudeField='+latitudeField,
		dataType: "json",
		success : function(data, textStatus) {  
			if (data!=null||data!=""){		
				var num=data.length;
				var point;
				for( var i=0;i<data.length;i++){
					var childid=childids[i]; 
					if(automap.get(childid)!=null)
					{
						continue;
					}
					if(data[i].picfilename!="")
					{
						//var myIcon = new BMap.Icon(common_basePath+"map/pic/"+data[i].picfilename, new BMap.Size(64,64));					
						var myIcon = new BMap.Icon(common_basePath+"map/pic/"+data[i].picfilename, new BMap.Size(32,32));	
						point =  new BMap.Point(data[i].longitude, data[i].latitude);
						var marker = new BMap.Marker(point,{icon:myIcon});        // 创建标注    
						marker.id = id.replace(type,'');
						marker.longitude = data[i].longitude;
						marker.latitude = data[i].latitude;
						map.addOverlay(marker);
						var childid=childids[i]; 
						automap.put(childid,marker); 
					}
					else{
						var marker = new BMap.Marker(point); 
						marker.id = id.replace(type,'');
						marker.longitude = data[i].longitude;
						marker.latitude = data[i].latitude;
						map.addOverlay(marker); 
						var childid=childids[i]; 
						automap.put(childid,marker); 
					}
					map.panTo(point);
				}	
			}
			else{
				alert('没有坐标！');
			}
		}
	});
}
function showPointAllNormal(id,childids,type,tablename,fieldname,clickevent){
$.ajax({
		type: "POST",
		async: false,//取消异步提交
		url: '<%=request.getContextPath() %>/pipePointAction!getPointAll.action?id='+id+'&type='+type+'&tablename='+tablename+'&fieldname='+fieldname,
		dataType: "json",
		success : function(data, textStatus) {  
			if (data!=null||data!=""){		
				var num=data.length;
				var point;
				for( var i=0;i<data.length;i++){
					if(data[i].picfilename!="")
					{
						//var myIcon = new BMap.Icon(common_basePath+"map/pic/"+data[i].picfilename, new BMap.Size(64,64));					
						var myIcon = new BMap.Icon(common_basePath+"map/pic/"+data[i].picfilename, new BMap.Size(32,32));	
						point =  new BMap.Point(data[i].longitude, data[i].latitude);
						var marker = new BMap.Marker(point,{icon:myIcon});        // 创建标注    
						marker.id = id.replace(type,'');
						marker.longitude = data[i].longitude;
						marker.latitude = data[i].latitude;
						map.addOverlay(marker); 
						var childid=childids[i]; 
						automap.put(childid,marker); 
					}
					else{
						var marker = new BMap.Marker(point); 
						marker.id = id.replace(type,'');
						marker.longitude = data[i].longitude;
						marker.latitude = data[i].latitude;
						map.addOverlay(marker); 
						var childid=childids[i]; 
						automap.put(childid,marker); 
					}
					map.panTo(point);
				}	
			}
			else{
				alert('没有坐标！');
			}
		}
	});
}
//防腐层检测点
function showFangfucengjiancedian(){
$.ajax({
		type: "POST",
		async: false,//取消异步提交
		url: '<%=request.getContextPath() %>/guanxianAction!getFangfucengjiancedian.action',
		dataType: "json",
		success : function(data, textStatus) {  
			for( var i=0;i<data.length;i++){
				var myIcon = new BMap.Icon(common_basePath+"map/pic/1234.png", new BMap.Size(20,20));		
				point =  new BMap.Point(data[i].longitude, data[i].latitude);
				var marker = new BMap.Marker(point,{icon:myIcon});        // 创建标注    
				marker.longitude = data[i].longitude;
				marker.latitude = data[i].latitude;
				map.addOverlay(marker); 
			}
		}
	});
}

function showWeizhangPic(e){
var obj = new Object();
obj.name="11";
	window.showModalDialog("photo.jsp",obj,"dialogWidth=800px;dialogHeight=600px");
}
//显示管线点
function showGuanxianpoint(gxid){
	$.ajax({
		type: "POST",
		async: false,//取消异步提交
		url: '<%=request.getContextPath() %>/guanxianAction!getGuanxianpoint.action?gxid='+gxid,
		dataType: "json",
		success : function(data, textStatus) {  
			if (data!=null||data!=""){
				for( var i=0;i<data.length;i++){
					var point =  new BMap.Point(data[i].nodel, data[i].nodeb);
					var marker = new BMap.Marker(point);        // 创建标注    
					map.addOverlay(marker);  
					markers[i] = marker;
					if (i==0){
						map.panTo(point);
					}
				}
			}
			else{
				alert('该管线没有坐标！');
			}
		}
	});
}


//显示管段线
function showGuanduanline(gdid){
	$.ajax({
		type: "POST",
		async: false,//取消异步提交
		url: '<%=request.getContextPath() %>/guanxianAction!getGuanduanline.action?gdid='+gdid,
		dataType: "json",
		success : function(data, textStatus) {  
			if (data!=null||data!=""){
				var beginpoint =  new BMap.Point(data.beginnodel, data.beginnodeb);
				var endpoint =  new BMap.Point(data.endnodel, data.endnodeb);
				map.panTo(beginpoint);
				var polyline = new BMap.Polyline([
					beginpoint,
					endpoint
				], {strokeColor:"blue", strokeWeight:6, strokeOpacity:0.5});   //创建折线
				map.addOverlay(polyline);  
				map.setZoom(16); 
				polyline.gdid = gdid.replace('gd','');
				
				polyline.addEventListener("click",showGuanduanmenu); 
				automap.put(gdid,polyline); 
				guanduanmap.put(data.pipesectionno,polyline);
			}
			else{
				alert('该管段没有坐标！');
			}
		}
	});
}


//显示管段线
var guanduanmap = new Map(); 
var famenmap = new Map();
 
function showGuanduanlinesdaojian(gddatas,type,isgoto){
	for(var i=0;i<gddatas.length;i++){
		var data = gddatas[i];
		var beginpoint =  new BMap.Point(data.beginnodel, data.beginnodeb);
		var endpoint =  new BMap.Point(data.endnodel, data.endnodeb);
		var ccstrokeColor = "blue";
		if(type=="jijiangdaoqi")
		{
			ccstrokeColor = "yellow";
		}
		else if(type=="chaoqi")
		{
			ccstrokeColor = "red";
		}
		if (isgoto!=false){
			if (i==0){
				map.panTo(beginpoint);
			}
		}
		var polyline = new BMap.Polyline([
			beginpoint,
			endpoint
		], {strokeColor:ccstrokeColor, strokeWeight:6, strokeOpacity:0.5});   //创建折线
		map.addOverlay(polyline);  
		//map.setZoom(16); 
		polyline.gdid = data.pipesectionno;
		polyline.beginnodel = data.beginnodel;
		polyline.beginnodeb = data.beginnodeb;
		polyline.colorlevel1 = data.colorlevel1;
		polyline.colorlevel2 = data.colorlevel2;
		polyline.colorlevelRiso = data.colorlevelRiso;
		polyline.colorlevelPotential = data.colorlevelPotential;
		polyline.addEventListener("click",showGuanduanmenu);
		guanduanmap.put(data.pipesectionno,polyline);
		var gdid="gd"+data.pipesectionno;
		automap.put(gdid,polyline); 
	}
}
function showGuanduanlines(gddatas,isgoto){
	for(var i=0;i<gddatas.length;i++){
		var data = gddatas[i];
		var beginpoint =  new BMap.Point(data.beginnodel, data.beginnodeb);
		var endpoint =  new BMap.Point(data.endnodel, data.endnodeb);
		var ccstrokeColor = "blue";
		if (isgoto!=false){
			if (i==0){
				map.panTo(beginpoint);
			}
		}
		var polyline = new BMap.Polyline([
			beginpoint,
			endpoint
		], {strokeColor:ccstrokeColor, strokeWeight:6, strokeOpacity:0.5});   //创建折线
		map.addOverlay(polyline);  
		//map.setZoom(16); 
		polyline.gdid = data.pipesectionno;
		polyline.beginnodel = data.beginnodel;
		polyline.beginnodeb = data.beginnodeb;
		polyline.colorlevel1 = data.colorlevel1;
		polyline.colorlevel2 = data.colorlevel2;
		polyline.colorlevelRiso = data.colorlevelRiso;
		polyline.colorlevelPotential = data.colorlevelPotential;
		polyline.addEventListener("click",showGuanduanmenu);
		guanduanmap.put(data.pipesectionno,polyline);
		var gdid="gd"+data.pipesectionno;
		automap.put(gdid,polyline); 
	}
}
function showGuanduanlinescolorRiso(){
	for (var i in guanduanmap.entrySet()) {
	    var obj = guanduanmap.entrySet()[i];
	    var polyline = obj.getValue();	    
    	var ccstrokeColor = "blue";
    	if (polyline.colorlevelRiso=='1'){
			ccstrokeColor="#00BFFF";	
		}
		else if(polyline.colorlevelRiso=='2'){
			ccstrokeColor="green";
		}
		else if(polyline.colorlevelRiso=='3'){
			ccstrokeColor="yellow";
		}
		else if(polyline.colorlevelRiso=='4'){
			ccstrokeColor="red";
		}
		polyline.setStrokeColor(ccstrokeColor); 
	}      
}

function showGuanduanlinescolorCp(){
	for (var i in guanduanmap.entrySet()) {
	    var obj = guanduanmap.entrySet()[i];
	    var polyline = obj.getValue();	    
    	var ccstrokeColor = "blue";
    	if (polyline.colorlevelPotential=='1'){
			ccstrokeColor="#00BFFF";	
		}
		else if(polyline.colorlevelPotential=='2'){
			ccstrokeColor="green";
		}
		else if(polyline.colorlevelPotential=='3'){
			ccstrokeColor="yellow";
		}
		else if(polyline.colorlevelPotential=='4'){
			ccstrokeColor="red";
		}
		polyline.setStrokeColor(ccstrokeColor);  
	}   
}
function showGuanduanlinescolor(type){
	for (var i in guanduanmap.entrySet()) {
	    var obj = guanduanmap.entrySet()[i];
	    var polyline = obj.getValue();
	    if (type=='1'){
	    	var ccstrokeColor = "blue";
	    	if (polyline.colorlevel1=='1'){
				ccstrokeColor="#00BFFF";	
			}
			else if(polyline.colorlevel1=='2'){
				ccstrokeColor="green";
			}
			else if(polyline.colorlevel1=='3'){
				ccstrokeColor="yellow";
			}
			else if(polyline.colorlevel1=='4'){
				ccstrokeColor="red";
			}
			polyline.setStrokeColor(ccstrokeColor); 
	    }else if (type=='2'){
	    	var ccstrokeColor = "blue";
	    	if (polyline.colorlevel2=='1'){
				ccstrokeColor="#00BFFF";	
			}
			else if(polyline.colorlevel2=='2'){
				ccstrokeColor="green";
			}
			else if(polyline.colorlevel2=='3'){
				ccstrokeColor="yellow";
			}
			else if(polyline.colorlevel2=='4'){
				ccstrokeColor="red";
			}
			polyline.setStrokeColor(ccstrokeColor); 
	    }
	}
}

function removeGuanduanlines(gddatas){
	for(var i=0;i<gddatas.length;i++){
		var data = gddatas[i];
		if (guanduanmap.containsKey(data.pipesectionno)){
			map.removeOverlay(guanduanmap.get(data.pipesectionno)); 
			guanduanmap.clear(data.pipesectionno);
		}
		//
		var key="gd"+data.pipesectionno;
		if (automap.containsKey(key)){
			map.removeOverlay(automap.get(key)); 
			automap.clear(key);
		}
	}
}

function removemarks(ids){
	for(var i=0;i<ids.length;i++){
		var id = ids[i];
		//alert(id);				
		map.removeOverlay(automap.get(id)); 
		automap.remove(id);
	}
}

//删除所有管段
function removeGuanduanAll(){
	for (var i in guanduanmap.entrySet()) {
	    var obj = guanduanmap.entrySet()[i];
	    map.removeOverlay(obj.getValue()); 
	}
	guanduanmap.clearall();
}
//删除所有阀门
function removeFamenAll(){
	for (var i in famenmap.entrySet()) {
	    var obj = famenmap.entrySet()[i];
	    map.removeOverlay(obj.getValue()); 
	}
	famenmap.clearall();
}

//显示管段缩略图线
var guanduanthumbmap = new Map(); 
function showThumbGuanduanlines(gddatas,isgoto){
	for(var i=0;i<gddatas.length;i++){
		var data = gddatas[i];
		var beginpoint =  new BMap.Point(data.beginnodel, data.beginnodeb);
		var endpoint =  new BMap.Point(data.endnodel, data.endnodeb);
		if (isgoto!=false){
			if (i==0){
				map.panTo(beginpoint);
			}
		}
		var polyline = new BMap.Polyline([
			beginpoint,
			endpoint
		], {strokeWeight:6, strokeOpacity:0.5});   //创建折线
		map.addOverlay(polyline);  
		map.setZoom(10); 
		guanduanthumbmap.put(data.id,polyline);
	}
}

//删除所有管段
function removeThumbGuanduanAll(){
	for (var i in guanduanthumbmap.entrySet()) {
	    var obj = guanduanthumbmap.entrySet()[i];
	    map.removeOverlay(obj.getValue()); 
	}
	guanduanthumbmap.clearall();
	
}


function showGuanduanmenu(e){
	//alert('guanduan');
	var p = e.target;
	//var path = p.getPath();
	var id= p.gdid;
    var actionUrl = webroot+"/pipePointAction!getGuanduan.action?id="+id;  
	$.ajax({  
	 	 url : actionUrl,  
	     type : "post",   
	     dataType : "json",  
	     cache : false,  
	     error : function(textStatus, errorThrown) {  
	         alert("系统ajax交互错误: " + textStatus.value);  
	     },  
	 	success : function(data, textStatus) {		 	
 		 	var beginnodel = data.beginnodel;
		var beginnodeb = data.beginnodeb;
		var endnodel = data.endnodel;
		var endnodeb = data.endnodeb;							
		var PIPELINENO = data.PIPELINENO;
		var BEGINNODEY = data.BEGINNODEY;
		var BEGINNODEX = data.BEGINNODEX;
		var BEGINNODEH = data.BEGINNODEH;				
		var ENDNODEY = data.ENDNODEY;
		var ENDNODEX = data.ENDNODEX;
		var ENDNODEH = data.ENDNODEH;					
		var ENDNODEL = data.ENDNODEL;
		var ENDNODEB = data.ENDNODEB;
		var ENDNODEELLIPSOIDH = data.ENDNODEELLIPSOIDH;					
		var BEGINNODEL = data.BEGINNODEL;
		var BEGINNODEB = data.BEGINNODEB;
		var BEGINNODEELLIPSOIDH = data.BEGINNODEELLIPSOIDH;																
		var RUNPRESSURELEVEL = data.RUNPRESSURELEVEL;
		var PRESSURELEVEL = data.PRESSURELEVEL;
		var AERATEDATE = data.AERATEDATE;
		var PAVEMODE = data.PAVEMODE;
		var PAVEMODE = data.PAVEMODE;
		var MATERIAL = data.MATERIAL;
		var MATERIALMARK = data.MATERIALMARK;
		var OUTERDIAMETER = data.OUTERDIAMETER;
		var THICKNESS = data.THICKNESS;
		var PLANELENGTH = data.PLANELENGTH;
		var REALLENGTH = data.REALLENGTH;
		var MANAGEUNIT = data.MANAGEUNIT;
		var MANAGEDEPARTMENT = data.MANAGEDEPARTMENT;
		var REMARK = data.REMARK;						  
		var content = '<div style="height:180px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">管段编号：'+p.gdid
		+'<br/>管线编号：'+	PIPELINENO
		+'<br/>起点坐标：起点坐标Y:'+BEGINNODEY+'；起点坐标X: '+BEGINNODEX+';起点高程h:'+BEGINNODEH
		+'<br/>终点坐标：终点坐标Y:'+ENDNODEY+'；终点坐标X:'+ENDNODEX+'；终点高程h:'+ENDNODEH
		+'<br/>起点经纬度：起点经度L:'+BEGINNODEL+'；起点纬度B:'+BEGINNODEB+'；起点椭球高H:'+BEGINNODEELLIPSOIDH
		+'<br/>终点经纬度：终点经度L:'+ENDNODEL+'；终点纬度B:'+ENDNODEB+'；终点椭球高H:'+ENDNODEELLIPSOIDH
		+'<br/>压力级制:'+PRESSURELEVEL
		+'<br/>压力级制（运行单位）:'+RUNPRESSURELEVEL+'<br/>'
		+'<br/>通气时间:'+AERATEDATE
		+'<br/>铺设方式:'+PAVEMODE
		+'<br/>材质:'+MATERIAL
		+'<br/>材质牌号:'+MATERIALMARK
		+'<br/>外径(mm):'+OUTERDIAMETER
		+'<br/>壁厚(mm):'+THICKNESS
		+'<br/>平面长度(m):'+PLANELENGTH
		+'<br/>实际长度(m):'+REALLENGTH
		+'<br/>管理单位:'+MANAGEUNIT
		+'<br/>管理部门:'+MANAGEDEPARTMENT
		+'<br/>备注:'+REMARK	
		+'<br/><span onclick="showPanorama(\''+p.beginnodel+'\',\''+p.beginnodeb+'\')">全景查看</span></div>'
	             
	    //创建检索信息窗口对象
	    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
		title: "管段信息", //标题
		width: 390, //宽度
		height: 200, //高度
		panel : "panel", //检索结果面板
		enableAutoPan : true, //自动平移
		searchTypes   :[
				BMAPLIB_TAB_SEARCH,   //周边检索
				BMAPLIB_TAB_TO_HERE,  //到这里去
				BMAPLIB_TAB_FROM_HERE //从这里出发
			]
		});
		searchInfoWindow.open(new BMap.Point(beginnodel,beginnodeb)); 	
		}  
	});
}
//显示特征点
function showTezhengdian(tzid){
	//alert(tzid);
	if(automap.get(tzid)!=null)
	{
		//alert('automap.get(tzid)!=null');
		return;
	}
	$.ajax({
		type: "POST",
		async: false,//取消异步提交
		url: '<%=request.getContextPath() %>/guanxianAction!getTezhengdian.action?tzid='+tzid,
		dataType: "json",
		success : function(data, textStatus) {  
			if (data!=null||data!=""){
				var point =  new BMap.Point(data.longitude, data.latitude);
				map.panTo(point);
				if (data.picfilename!=''){
					var myIcon = new BMap.Icon(common_basePath+"map/pic/"+data.picfilename, new BMap.Size(32,32));
					
					//var myIcon = new BMap.Icon(common_basePath+"map/tezhengdimage/"+data.picfilename, new BMap.Size(32,32));
					var marker = new BMap.Marker(point,{icon:myIcon});  // 创建标注
					map.addOverlay(marker);              // 将标注添加到地图中
					marker.tzid = tzid.replace('tz','');
					marker.longitude = data.longitude;
					marker.latitude = data.latitude;
					
					marker.POINTTYPE = data.POINTTYPE;
					marker.POINTNAME = data.POINTNAME;
					marker.GROUNDMARK = data.GROUNDMARK;
					marker.LOCATIONY = data.LOCATIONY;			
					marker.LOCATIONX = data.LOCATIONX;
					marker.HEIGHT = data.HEIGHT;
					marker.LONGITUDE = data.LONGITUDE;
					marker.LATITUDE = data.LATITUDE;
					marker.ELLIPSOIDH = data.ELLIPSOIDH;
					marker.PHOTO = data.PHOTO;
					marker.REMARK = data.REMARK;
					marker.PIPELINENO = data.PIPELINENO;
					marker.PIPESECTIONNO = data.PIPESECTIONNO;
					marker.ATTACHMENT = data.ATTACHMENT;																		
		
					marker.addEventListener("click",showTezhengdmenu); 
					automap.put(tzid,marker);  
				}
				else{
					var marker = new BMap.Marker(point); 
					map.addOverlay(marker);
					marker.tzid = tzid.replace('tz','');
					marker.longitude = data.longitude;
					marker.latitude = data.latitude;
					marker.addEventListener("click",showTezhengdmenu);  
					automap.put(tzid,marker);  
				}
			}
			else{
				alert('该管段没有坐标！');
			}
		}
	});
}



	//点穿跨越响应函数
	function showchuankuayuemenu(e){
		var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getChuankuayue.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  
	      success : function(data, textStatus) {		
	      	var PIPENO=data.PIPENO;
	      	var CROSSINGDESCRIPTION=data.CROSSINGDESCRIPTION;
	      	var BEGINNODEY=data.BEGINNODEY;
	      	var BEGINNODEX=data.BEGINNODEX;
	      	var BEGINNODEH=data.BEGINNODEH;
	      	var BEGINNODEL=data.BEGINNODEL;
	      	var BEGINNODEB=data.BEGINNODEB;
	      	var BEGINNODEELLIPSEH=data.BEGINNODEELLIPSEH;
	      	var ENDNODEY=data.ENDNODEY;
	      	var ENDNODEX=data.ENDNODEX;
	      	var ENDNODEH=data.ENDNODEH;
	      	var ENDNODEL=data.ENDNODEL;
	      	var ENDNODEB=data.ENDNODEB;
	      	var UNEARTHELLIPSEH=data.UNEARTHELLIPSEH;
	      	var CROSSINGTYPE=data.CROSSINGTYPE;
	      	var OBJECTTYPE=data.OBJECTTYPE;
	      	var CROSSINGWAY=data.CROSSINGWAY;
	      	var SAFEGUARD=data.SAFEGUARD;
	      	var OUTERDIAMETER=data.OUTERDIAMETER;	
	      	var THICKNESS=data.THICKNESS;
	      	var DISTANCE=data.DISTANCE;
	      	var INANGLE=data.INANGLE;
	      	var OUTANGLE=data.OUTANGLE;
	      	var CURRENTDISTURB=data.CURRENTDISTURB;
	      	var TEMPERATUREIMPACT=data.TEMPERATUREIMPACT;
	      	var CORROSION=data.CORROSION;
	      	var COATINGTYPE=data.COATINGTYPE;
	      	var PROJECTNO=data.PROJECTNO;
	      	var PIPELINENO=data.PIPELINENO;
	      	/*var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;*/
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">穿跨越编号：'+
			p.tzid+'<br/>管网编号：'+PIPENO+
			'<br/>穿跨越描述信息：'+CROSSINGDESCRIPTION+
			'<br/>坐标（坐标Y；坐标X；高程）：'+BEGINNODEY+';'+BEGINNODEX+';'+BEGINNODEH+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+BEGINNODEL+';'+BEGINNODEB+';'+BEGINNODEELLIPSEH+
			'<br/>穿跨越类型：'+CROSSINGTYPE+
			'<br/>穿跨越对象类型：'+OBJECTTYPE+
			'<br/>穿跨越方式：'+CROSSINGWAY+
			'<br/>穿跨越保护措施：'+SAFEGUARD+
			'<br/>套管外径（mm）：'+OUTERDIAMETER+
			'<br/>套管壁厚（mm）：'+THICKNESS+
			'<br/>净间距(m)：'+DISTANCE+
			'<br/>入土角度(°)：'+INANGLE+
			'<br/>出土角度(°)：'+OUTANGLE+
			'<br/>是否有杂散电流干扰：'+CURRENTDISTURB+
			'<br/>是否受温度影响：'+TEMPERATUREIMPACT+
			'<br/>是否存在大气腐蚀：'+CORROSION+
			'<br/>穿跨越段防腐层类型：'+COATINGTYPE+
			'<br/>工程项目编号：'+PROJECTNO+
			'<br/>管线编号：'+PIPELINENO+				
			/*'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+*/	
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			//'<br/>备注：'+REMARK+
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "穿跨越信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
	}
	//点排流装置响应函数
	function showpailiuzhuangzhimenu(e){
		var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getPailiuzhuangzhi.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  
	      success : function(data, textStatus) {	
	      	var DRAINAGEWAY=data.DRAINAGEWAY;
	      	var REMOTEEQUIPMENT=data.REMOTEEQUIPMENT;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var POTENTIAL=data.POTENTIAL;
	      	var MAXCURRENT=data.MAXCURRENT;
	      	var MINCURRENT=data.MINCURRENT;
	      	var MEANCURRENT=data.MEANCURRENT;
	      	var DISTURBANCEVOLTAGE=data.DISTURBANCEVOLTAGE;
	      	var CURRENTDENSITY=data.CURRENTDENSITY;
	      	var DRAINAGEAMOUNT=data.DRAINAGEAMOUNT;
	      	var USETIME=data.USETIME;
	      	var REMARK=data.REMARK;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPESECTIONNO=data.PIPESECTIONNO;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	/*var photopath=data.photopath;
	      	var photoname=data.photoname;*/
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">排流装置编码：'+
			p.tzid+'<br/>排流方式：'+DRAINAGEWAY+
			'<br/>远传装置：'+REMOTEEQUIPMENT+
			'<br/>管地电位（-mV）：'+POTENTIAL+
			'<br/>最大排流电流（A）：'+MAXCURRENT+
			'<br/>最小排流电流（A）：'+MINCURRENT+
			'<br/>排流电流平均值 （A）：'+MEANCURRENT+
			'<br/>管道交流干扰电压（mV）：'+DISTURBANCEVOLTAGE+
			'<br/>管道交流电流密度 （A/m2）：'+CURRENTDENSITY+
			'<br/>防护系统交流排流量（A）：'+DRAINAGEAMOUNT+
			'<br/>投用时间：'+USETIME+
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPESECTIONNO+	
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+
			/*'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+*/			
			'<br/>备注：'+REMARK+
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "排流装置信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
	}
	//点测试桩响应函数
	function showceshizhuangmenu(e){
		var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getCeshizhuang.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  
	      success : function(data, textStatus) {
	      	var DEVICECODE=data.DEVICECODE;
	      	var PROJECTNO=data.PROJECTNO;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var REMOTEEQUIPMENT=data.REMOTEEQUIPMENT;
	      	var MANAGEUNIT=data.MANAGEUNIT;
	      	var USETIME=data.USETIME;
	      	var POTENTIAL=data.POTENTIAL;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPESECTIONNO=data.PIPESECTIONNO;
	      	var REMARK=data.REMARK;
	      	var POLETYPE=data.POLETYPE;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
	      	var photopath=data.photopath;
	      	var photoname=data.photoname;
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">测试桩编号：'+
			p.tzid+'<br/>设备编码：'+DEVICECODE+
			'<br/>工程项目编号：'+PROJECTNO+
			'<br/>位置描述：'+LOCATIONDESCRIPTION+
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+
			'<br/>测试桩类型：'+POLETYPE+
			'<br/>远传装置：'+REMOTEEQUIPMENT+
			'<br/>管理单位：'+MANAGEUNIT+
			'<br/>管地电位（-mV）：'+POTENTIAL+
			'<br/>投用时间：'+USETIME+			
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPESECTIONNO+	
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+
			'<br/>照片：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			photopath+'" target="_blank">'+photoname+'</a>'+
			
			'<br/>备注：'+REMARK+
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "测试桩信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
	}
	//点阳极响应函数	
	function showyangjimenu(e){
		var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getYangji.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  
	      success : function(data, textStatus) {
	      	var ANODENUM=data.ANODENUM;
	      	var ANODESTANDARD=data.ANODESTANDARD;
	      	var LOCATIONY=data.LOCATIONY;
	      	var LOCATIONX=data.LOCATIONX;
	      	var HEIGHT=data.HEIGHT;
	      	var LONGITUDE=data.LONGITUDE;
	      	var LATITUDE=data.LATITUDE;
	      	var ELLIPSEH=data.ELLIPSEH;
	      	var LOCATIONDESCRIPTION=data.LOCATIONDESCRIPTION;
	      	var REMARK=data.REMARK;
	      	var PIPELINENO=data.PIPELINENO;
	      	var PIPESECTIONNO=data.PIPESECTIONNO;
	      	var attachmentpath=data.attachmentpath;
	      	var attachmentname=data.attachmentname;
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">阳极编号：'+
			p.tzid+'<br/>阳极数量：'+ANODENUM+'<br/>阳极规格：'+ANODESTANDARD+
			'<br/>位置描述：'+LOCATIONDESCRIPTION+
			'<br/>坐标（坐标Y；坐标X；高程）：'+LOCATIONY+';'+LOCATIONX+';'+HEIGHT+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+LONGITUDE+';'+LATITUDE+';'+ELLIPSEH+
			'<br/>备注：'+REMARK+
			'<br/>管线编号：'+PIPELINENO+
			'<br/>管网编号：'+PIPESECTIONNO+
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+
			p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "阳极信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
	}
	//点击三通响应函数	
	function showsantongmenu(e){
		var p = e.target;
		var id= p.tzid;	
	    var actionUrl = webroot+"/pipePointAction!getSantong.action?id="+id;  
 		$.ajax({  
		  url : actionUrl,  
	      type : "post",   
	      dataType : "json",  
	      cache : false,  
	      error : function(textStatus, errorThrown) {  
	          alert("系统ajax交互错误: " + textStatus.value);  
	      },  
	      success : function(data, textStatus) {
	      	var type=data.type;
	      	var mainthickness=data.mainthickness;
	      	var maindiameter=data.maindiameter;
	      	var branchthickness=data.branchthickness;
	      	var branchdiameter=data.branchdiameter;
	      	var pressurelevel=data.pressurelevel;
	      	var locationy=data.locationy;
	      	var locationx=data.locationx;
	      	var height=data.height;
	      	var longitude=data.longitude;
	      	var latitude=data.latitude;
	      	var ellipseh=data.ellipseh;
	      	var remark=data.remark;
	      	var pipelineno=data.pipelineno;
	      	var pipesectionno=data.pipesectionno;
	      	var attachmentpath=data.attachmentpath;
	      	//alert(attachmentpath);
	      	var attachmentname=data.attachmentname;
			var content = '<div style="height:300px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">三通编号：'+
			p.tzid+'<br/>类型：'+type+'<br/>主管直径(mm)：'+maindiameter+
			'<br/>主管壁厚(mm)：'+mainthickness+'<br/>分管直径(mm)：'+branchdiameter+
			'<br/>分管壁厚(mm)：'+branchthickness+'<br/>压力等级：'+pressurelevel+
			'<br/>坐标（坐标Y；坐标X；高程）：'+locationy+';'+locationx+';'+height+
			'<br/>经纬度（经度L；纬度B；椭球高）：'+longitude+';'+latitude+';'+ellipseh+
			'<br/>备注：'+remark+
			'<br/>管线编号：'+pipelineno+
			'<br/>管网编号：'+pipesectionno+
			'<br/>附件：<a href="<%=basePath%>filemodeAction!getFileDownload.action?path='+
			attachmentpath+'" target="_blank">'+attachmentname+'</a>'+
			'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+
			p.latitude+'\')">全景查看</span></div>'                 
		    //创建检索信息窗口对象
		    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
			title: "三通信息", //标题
			width: 400, //宽度
			height: 300, //高度
			panel : "panel", //检索结果面板
			enableAutoPan : true, //自动平移
			searchTypes   :[
					BMAPLIB_TAB_SEARCH,   //周边检索
					BMAPLIB_TAB_TO_HERE,  //到这里去
					BMAPLIB_TAB_FROM_HERE //从这里出发
				]
			});
			searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 			
	    	}  
		});
	}
	//点击特征点响应函数
	function showTezhengdmenu(e){
		var p = e.target;
		var content = '<div style="height:180px;overflow-y:auto;margin:0;line-height:20px;padding:2px;">特征点编号：'+p.tzid
		+'<br/>类型：'+p.POINTTYPE
		+'<br/>特征点名称：'+p.POINTNAME		
		+'<br/>地面标志情况：'+p.GROUNDMARK		
		+'<br/>坐标（坐标Y；坐标X；高程）：'+p.LOCATIONY+';'+p.LOCATIONX+';'+p.HEIGHT		
		+'<br/>经纬度（经度L；纬度B；椭球高）：'+p.LONGITUDE+';'+p.LATITUDE+';'+p.ELLIPSOIDH		
		+'<br/>照片：'+p.PHOTO		
		+'<br/>备注：'+p.REMARK		
		+'<br/>管线编号：'+p.PIPELINENO		
		+'<br/>管网编号：'+p.PIPESECTIONNO		
		+'<br/>附件：'+p.ATTACHMENT		
		+'<br/><span onclick="showPanorama(\''+p.longitude+'\',\''+p.latitude+'\')">全景查看</span></div>'
		                 
	    //创建检索信息窗口对象
	    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
		title: "特征点信息", //标题
		//title: "XX机械厂", //标题
		width: 390, //宽度
		height: 200, //高度
		panel : "panel", //检索结果面板
		enableAutoPan : true, //自动平移
		searchTypes   :[
				BMAPLIB_TAB_SEARCH,   //周边检索
				BMAPLIB_TAB_TO_HERE,  //到这里去
				BMAPLIB_TAB_FROM_HERE //从这里出发
			]
		});
		searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 	
	}
	
	function showPanorama(beginnodel,beginnodeb){
		window.open('<%=request.getContextPath() %>/map/panorama.jsp?beginnodel='+beginnodel+'&beginnodeb='+beginnodeb,'全景图','height=650,width=1050,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no') 
	}
	
	//交通流量功能
	var ctrl = new BMapLib.TrafficControl({
			showPanel: true //是否显示路况提示面板
	});  
	function showJiaotongll(){
		map.addControl(ctrl);
	}
	
	function removeJiaotongll(){
		map.removeControl(ctrl);
	}
	
	//是否显示卫星
	var mapType1 = new BMap.MapTypeControl({mapTypes: [BMAP_NORMAL_MAP,BMAP_HYBRID_MAP]});
	var mapType2 = new BMap.MapTypeControl({anchor: BMAP_ANCHOR_TOP_RIGHT});

	var overView = new BMap.OverviewMapControl();
	var overViewOpen = new BMap.OverviewMapControl({isOpen:true, anchor: BMAP_ANCHOR_BOTTOM_RIGHT});
	//添加地图类型和缩略图
	function add_control(){
		map.addControl(mapType1);          //2D图，卫星图
		map.addControl(mapType2);          //左上角，默认地图控件
		map.setCurrentCity("北京");        //由于有3D图，需要设置城市哦
		map.addControl(overView);          //添加默认缩略地图控件
		map.addControl(overViewOpen);      //右下角，打开
	}
	//移除地图类型和缩略图
	function delete_control(){
		map.removeControl(mapType1);   //移除2D图，卫星图
		map.removeControl(mapType2);
		map.removeControl(overView);
		map.removeControl(overViewOpen);
	}

	//测距
	var myDis = new BMapLib.DistanceTool(map);
	function showCeju(){
		myDis.open();
	}
	
	function searchDidian(searchtext){
		var local = new BMap.LocalSearch(map, {
            renderOptions:{map: map}
        });
        local.search(searchtext);      
	}
	
	//地图画圆
	function drawCircle(jingdu,weidu,juli){
		var point = new BMap.Point(jingdu,weidu,juli);
		var circle = new BMap.Circle(point,juli);
		map.addOverlay(circle);  
	}
	
	//地图画点
	function drawMarker(jingdu,weidu,title){
		var point =  new BMap.Point(jingdu, weidu);
		var marker = new BMap.Marker(point);
		marker.title = title;
		marker.longitude = jingdu;
		marker.latitude = weidu;
		marker.addEventListener("click",showCommon);   
		map.addOverlay(marker);  
		map.panTo(point);
	}
	
	var automap = new Map(); 
	function drawAutoMarker(obj,title,pointid){
		if (obj.marktype=='0'){
			var point =  new BMap.Point(obj.bjingdu, obj.bweidu);
			var marker = new BMap.Marker(point);
			marker.title = title;
			marker.longitude = obj.bjingdu;
			marker.latitude = obj.bweidu;
			marker.addEventListener("click",showCommon);   
			map.addOverlay(marker);  
			map.panTo(point);
			automap.put(pointid,marker);
		}
		else if(obj.marktype=='1'){
			var beginpoint =  new BMap.Point(obj.bjingdu, obj.bweidu);
			var endpoint =  new BMap.Point(obj.ejingdu, obj.eweidu);
			var ccstrokeColor = "blue";
			var polyline = new BMap.Polyline([
				beginpoint,
				endpoint
			], {strokeColor:ccstrokeColor, strokeWeight:6, strokeOpacity:0.5});   //创建折线
			map.addOverlay(polyline);  
			//map.setZoom(16); 
			polyline.title = title;
			polyline.beginnodel = obj.bjingdu;
			polyline.beginnodeb = obj.bweidu;
			polyline.addEventListener("click",showXianduan);
			map.panTo(beginpoint);
			automap.put(pointid,polyline);
		}
	}
	
	function showXianduan(e){
		var p = e.target;
		var path = p.getPath();
		var content = '<div style="margin:0;line-height:20px;padding:2px;">'+p.title+'<br/><span onclick="showPanorama(\''+p.beginnodel+'\',\''+p.beginnodeb+'\')">全景查看</span></div>'
		             
	    //创建检索信息窗口对象
	    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
		title: "选段信息", //标题
		width: 290, //宽度
		height: 40, //高度
		panel : "panel", //检索结果面板
		enableAutoPan : true, //自动平移
		searchTypes   :[
				BMAPLIB_TAB_SEARCH,   //周边检索
				BMAPLIB_TAB_TO_HERE,  //到这里去
				BMAPLIB_TAB_FROM_HERE //从这里出发
			]
		});
		searchInfoWindow.open(new BMap.Point(p.beginnodel,p.beginnodeb)); 	
	}
	
	function drawAutoMarkerNoPanto(obj,title,pointid){
		if (obj.marktype=='0'){
			var point =  new BMap.Point(obj.bjingdu, obj.bweidu);
			var marker = new BMap.Marker(point);
			marker.title = title;
			marker.longitude = obj.bjingdu;
			marker.latitude = obj.bweidu;
			marker.addEventListener("click",showCommon);   
			map.addOverlay(marker);  
			automap.put(pointid,marker);
		}
		else if(obj.marktype=='1'){
			var beginpoint =  new BMap.Point(obj.bjingdu, obj.bweidu);
			var endpoint =  new BMap.Point(obj.ejingdu, obj.eweidu);
			var ccstrokeColor = "blue";
			var polyline = new BMap.Polyline([
				beginpoint,
				endpoint
			], {strokeColor:ccstrokeColor, strokeWeight:6, strokeOpacity:0.5});   //创建折线
			map.addOverlay(polyline);  
			//map.setZoom(16); 
			polyline.title = title;
			polyline.beginnodel = obj.bjingdu;
			polyline.beginnodeb = obj.ejingdu;
			polyline.addEventListener("click",showCommon);
			automap.put(pointid,marker);
		}
	}
	
	function removeAutoMarker(id){
		/*if (pointid.indexOf('gd')==0)
		{
			map.removeOverlay(guanduanmap.get(data.pipesectionno));
			guanduanmap.remove();
		}
		else*/
		
		//{
			map.removeOverlay(automap.get(id)); 
			automap.remove(id);
		//}
		
	}
	
	function removeAutoMarkerArray(pointids){
		for(var i=0;i<pointids.length;i++)
		{
			var pointid=pointids[i];
			map.removeOverlay(automap.get(pointid)); 
			//automap.remove(pointid);
		}		
	}
	
	function showCommon(e){
		var p = e.target;          
	    //创建检索信息窗口对象
	    var searchInfoWindow = new BMapLib.SearchInfoWindow(map, p.longitude+','+p.latitude, {
		title: p.title, //标题
		width: 290, //宽度
		height: 40, //高度
		panel : "panel", //检索结果面板
		enableAutoPan : true, //自动平移
		searchTypes   :[
				BMAPLIB_TAB_SEARCH,   //周边检索
				BMAPLIB_TAB_TO_HERE,  //到这里去
				BMAPLIB_TAB_FROM_HERE //从这里出发
			]
		});
		searchInfoWindow.open(new BMap.Point(p.longitude,p.latitude)); 	
	}
	
	var weixingcontrol = new BMap.MapTypeControl();
	function showweixing(){
		map.addControl(weixingcontrol); 
	}
	
	function removeweixing(){
		map.removeControl(weixingcontrol); 
	}
	
      var keyword = "管段信息" ;
      var pullBox = new BMapLib.SearchInRectangle(map,keyword,{
          renderOptions:{
              map: null,
              strokeWeight: 2,
              strokeColor: "red",
              opacity: 0.5,                
              followText: "拖拽鼠标搜索"+keyword,
              autoViewport: false,
              alwaysShowOverlay: false
          },
          onSearchComplete: function(result){                
              showKuangxuanguanduan(result.bounds.Je,result.bounds.Ie,result.bounds.Ee,result.bounds.De)
          }           
      });        
      pullBox.setFillColor("white");
	  function kuangxuan(){
	     pullBox.open();
	  }
	  
	  function showKuangxuanguanduan(a1,b1,a2,b2){
		var actionUrl = webroot+"/guanxianAction!getGuanduankuangxuan.action?a1="+a1+"&b1="+b1+"&a2="+a2+"&b2="+b2;  
		 		$.ajax({  
				  url : actionUrl,  
			      type : "post",   
			      dataType : "json",  
			      cache : false,  
			      error : function(textStatus, errorThrown) {  
			          alert("系统ajax交互错误: " + textStatus.value);  
			      },  
			      success : function(data, textStatus) {
			      	//把管段信息显示到页面上
			      	removeGuanduanAll();
			      	showGuanduanlines(data.guanduandata);
			      	var obj = new Object();
			      	obj.a1 = a1;
			      	obj.b1 = b1;
			      	obj.a2 = a2;
			      	obj.b2 = b2;
			      	//刷新左侧数信息
			      	window.parent.refreshtreebykey('kuangxuan',obj);
			    }  
		});
	}
</script>  

</body>  
</html>
